Clarify that ConsulClusterInfo is an interface over serf

An interface was used to break a cyclic import dependency.
This commit is contained in:
Sean Chittenden 2016-03-25 12:38:40 -07:00
parent b8bbdb9e7a
commit b00db393e7

View File

@ -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