From d40b13a04568e7d71bbd132cb7ef987019c0f6a4 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 6 Feb 2020 21:37:17 +0000 Subject: [PATCH] mux to mtx --- logger/logger.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logger/logger.go b/logger/logger.go index 40c87d8e..8d7a4ece 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -28,13 +28,13 @@ type Logger interface { } var ( - mux sync.Mutex + mtx sync.Mutex loggerMap = map[string]Logger{} ) func Register(logger Logger) { - mux.Lock() - defer mux.Unlock() + mtx.Lock() + defer mtx.Unlock() loggerMap[logger.String()] = logger }