cleanup: drop registerServer proxy as not used
This commit is contained in:
parent
21d71ac9be
commit
cab67ba5a9
|
@ -78,7 +78,7 @@ func (proxy *Proxy) StartProxy() {
|
|||
}
|
||||
curve25519.ScalarBaseMult(&proxy.proxyPublicKey, &proxy.proxySecretKey)
|
||||
for _, registeredServer := range proxy.registeredServers {
|
||||
proxy.serversInfo.registerServer(proxy, registeredServer.name, registeredServer.stamp)
|
||||
proxy.serversInfo.registerServer(registeredServer.name, registeredServer.stamp)
|
||||
}
|
||||
|
||||
for _, listenAddrStr := range proxy.listenAddresses {
|
||||
|
|
|
@ -76,7 +76,7 @@ func NewServersInfo() ServersInfo {
|
|||
return ServersInfo{lbStrategy: DefaultLBStrategy, lbEstimator: true, registeredServers: make([]RegisteredServer, 0)}
|
||||
}
|
||||
|
||||
func (serversInfo *ServersInfo) registerServer(proxy *Proxy, name string, stamp stamps.ServerStamp) error {
|
||||
func (serversInfo *ServersInfo) registerServer(name string, stamp stamps.ServerStamp) error {
|
||||
newRegisteredServer := RegisteredServer{name: name, stamp: stamp}
|
||||
serversInfo.Lock()
|
||||
defer serversInfo.Unlock()
|
||||
|
|
Loading…
Reference in New Issue