File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
19
19
// Package dns implements a dns resolver to be installed as the default resolver
20
20
// in grpc.
21
- //
22
- // Deprecated: this package is imported by grpc and should not need to be
23
- // imported directly by users.
24
21
package dns
25
22
26
23
import (
@@ -53,8 +50,11 @@ func NewBuilder() resolver.Builder {
53
50
return dns .NewBuilder ()
54
51
}
55
52
56
- // SetMinResolutionInterval sets the default minimum interval at which DNS re-resolutions are
57
- // allowed. This helps to prevent excessive re-resolution.
53
+ // SetMinResolutionInterval sets the default minimum interval at which DNS
54
+ // re-resolutions are allowed. This helps to prevent excessive re-resolution.
55
+ //
56
+ // It must be called only at application startup, before any gRPC calls are
57
+ // made. Modifying this value after initialization is not thread-safe.
58
58
func SetMinResolutionInterval (d time.Duration ) {
59
59
dns .MinResolutionInterval = d
60
60
}
You can’t perform that action at this time.
0 commit comments