File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1818
1919// Package dns implements a dns resolver to be installed as the default resolver
2020// in grpc.
21- //
22- // Deprecated: this package is imported by grpc and should not need to be
23- // imported directly by users.
2421package dns
2522
2623import (
@@ -53,8 +50,11 @@ func NewBuilder() resolver.Builder {
5350 return dns .NewBuilder ()
5451}
5552
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.
5858func SetMinResolutionInterval (d time.Duration ) {
5959 dns .MinResolutionInterval = d
6060}
You can’t perform that action at this time.
0 commit comments