mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Add SyncInterval and NodeRecoverTimeout to cluster config
This commit is contained in:
@@ -113,6 +113,9 @@ type cluster struct {
|
||||
shutdownCh chan struct{}
|
||||
shutdownLock sync.Mutex
|
||||
|
||||
syncInterval time.Duration
|
||||
nodeRecoverTimeout time.Duration
|
||||
|
||||
forwarder forwarder.Forwarder
|
||||
api API
|
||||
proxy proxy.Proxy
|
||||
@@ -140,6 +143,9 @@ func New(config ClusterConfig) (Cluster, error) {
|
||||
|
||||
shutdownCh: make(chan struct{}),
|
||||
|
||||
syncInterval: config.SyncInterval,
|
||||
nodeRecoverTimeout: config.NodeRecoverTimeout,
|
||||
|
||||
nodes: map[string]proxy.Node{},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user