Validate checks the consistency of Config, and fails if this cannot be achieved.
()
| 224 | |
| 225 | // Validate checks the consistency of Config, and fails if this cannot be achieved. |
| 226 | func (cfg *Config) Validate() error { |
| 227 | if cfg.HeartbeatTimeout == 0 { |
| 228 | return errors.New("heartbeat timeout must be greater than 0") |
| 229 | } |
| 230 | return nil |
| 231 | } |
| 232 | |
| 233 | type instanceInfo struct { |
| 234 | InstanceID string |
no outgoing calls