From cf59a860e7ce7aafe45a0d30775bd9a6a632a2b1 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Sat, 26 Mar 2016 18:38:35 -0700 Subject: [PATCH] Comment why the interface is needed: cyclic import --- consul/server_manager/server_manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consul/server_manager/server_manager.go b/consul/server_manager/server_manager.go index 504c5ce2bf..41640c9086 100644 --- a/consul/server_manager/server_manager.go +++ b/consul/server_manager/server_manager.go @@ -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 }