mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 08:36:46 +00:00
Clarify that ConsulClusterInfo is an interface over serf
An interface was used to break a cyclic import dependency.
This commit is contained in:
parent
b8bbdb9e7a
commit
b00db393e7
@ -78,9 +78,9 @@ type ServerManager struct {
|
|||||||
|
|
||||||
logger *log.Logger
|
logger *log.Logger
|
||||||
|
|
||||||
// serf is used to estimate the approximate number of nodes in a
|
// clusterInfo is used to estimate the approximate number of nodes in
|
||||||
// cluster and limit the rate at which it rebalances server
|
// a cluster and limit the rate at which it rebalances server
|
||||||
// connections
|
// connections. ConsulClusterInfo is an interface that wraps serf.
|
||||||
clusterInfo ConsulClusterInfo
|
clusterInfo ConsulClusterInfo
|
||||||
|
|
||||||
// notifyFailedServersBarrier is acts as a barrier to prevent
|
// notifyFailedServersBarrier is acts as a barrier to prevent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user