File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ package cluster
19
19
import "github.com/hazelcast/hazelcast-go-client/cluster/discovery"
20
20
21
21
type DiscoveryConfig struct {
22
- Strategy discovery.Strategy `json:",omitempty"`
23
- UsePublicIP bool `json:",omitempty"`
22
+ // Strategy is a discovery.Strategy implementation.
23
+ // See the documentation in the discovery package.
24
+ Strategy discovery.Strategy `json:",omitempty"`
25
+ // UsePublicIP causes the client to use the public addresses of members instead of their private addresses, if available.
26
+ UsePublicIP bool `json:",omitempty"`
24
27
}
25
28
26
29
func (c DiscoveryConfig ) Clone () DiscoveryConfig {
Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ func sanitizedConfig(c Config) Config {
145
145
c .Network .Addresses = nil
146
146
c .Cloud = CloudConfig {}
147
147
c .ConnectionStrategy = ConnectionStrategyConfig {}
148
+ c .Discovery .Strategy = nil
149
+ c .Discovery .UsePublicIP = false
148
150
return c
149
151
}
150
152
You can’t perform that action at this time.
0 commit comments