mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 02:48:19 +00:00
Remove unused function
This commit is contained in:
parent
e639154abd
commit
0f418a1bcf
@ -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…
x
Reference in New Issue
Block a user