client.rpc: don't log errors on shutdown

This commit is contained in:
Michael Schurter
2018-11-14 16:08:17 -08:00
parent 31f113ba4d
commit 4b236cc4ce

View File

@@ -71,6 +71,13 @@ TRY:
return nil
}
// If shutting down, exit without logging the error
select {
case <-c.shutdownCh:
return nil
default:
}
// Move off to another server, and see if we can retry.
c.rpcLogger.Error("error performing RPC to server", "error", rpcErr, "rpc", method, "server", server.Addr)
c.servers.NotifyFailedServer(server)