mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
golint(1) police
This commit is contained in:
@@ -139,7 +139,7 @@ func (s *HTTPServer) listServers(resp http.ResponseWriter, req *http.Request) (i
|
||||
return nil, CodedError(501, ErrInvalidMethod)
|
||||
}
|
||||
|
||||
peers := s.agent.client.RpcProxy().ServerRPCAddrs()
|
||||
peers := s.agent.client.RPCProxy().ServerRPCAddrs()
|
||||
return peers, nil
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ func (s *HTTPServer) updateServers(resp http.ResponseWriter, req *http.Request)
|
||||
// Set the servers list into the client
|
||||
for _, server := range servers {
|
||||
s.agent.logger.Printf("[TRACE] Adding server %s to the client's primary server list", server)
|
||||
se := client.AddPrimaryServerToRpcProxy(server)
|
||||
se := client.AddPrimaryServerToRPCProxy(server)
|
||||
if se == nil {
|
||||
s.agent.logger.Printf("[ERR] Attempt to add server %q to client failed", server)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user