Remove unnecessary contexts passed as data to FatalIf. No need to log an empty context. (#6487)

This commit is contained in:
Pontus Leitzler
2018-09-22 01:04:11 +02:00
committed by Harshavardhana
parent 584cb61bb8
commit df60b3c733
8 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ func NewLockRPCServer() (*xrpc.Server, error) {
// Register distributed NS lock handlers.
func registerDistNSLockRouter(router *mux.Router) {
rpcServer, err := NewLockRPCServer()
logger.FatalIf(err, "Unable to initialize Lock RPC Server", context.Background())
logger.FatalIf(err, "Unable to initialize Lock RPC Server")
// Start lock maintenance from all lock servers.
go startLockMaintenance(globalLockServer)