Remove unused function
This commit is contained in:
parent
d8fe01db4c
commit
cac1c29ec5
|
@ -229,14 +229,6 @@ func (m *Manager) saveServerList(l serverList) {
|
||||||
m.listValue.Store(l)
|
m.listValue.Store(l)
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeIdAddrMap(list serverList) map[string]string {
|
|
||||||
ret := make(map[string]string)
|
|
||||||
for _, server := range list.servers {
|
|
||||||
ret[server.ID] = server.Addr.String()
|
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
|
|
||||||
// New is the only way to safely create a new Manager struct.
|
// New is the only way to safely create a new Manager struct.
|
||||||
func New(logger *log.Logger, shutdownCh chan struct{}, clusterInfo ManagerSerfCluster, connPoolPinger Pinger) (m *Manager) {
|
func New(logger *log.Logger, shutdownCh chan struct{}, clusterInfo ManagerSerfCluster, connPoolPinger Pinger) (m *Manager) {
|
||||||
m = new(Manager)
|
m = new(Manager)
|
||||||
|
|
Loading…
Reference in New Issue