Comment why the interface is needed: cyclic import

This commit is contained in:
Sean Chittenden 2016-03-26 18:38:35 -07:00
parent 3ecd72f3b5
commit cf59a860e7
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ const (
newRebalanceConnsPerSecPerServer = 64
)
// ConsulClusterInfo is an interface wrapper around serf and prevents a
// cyclic import dependency
type ConsulClusterInfo interface {
NumNodes() int
}