mux to mtx

This commit is contained in:
Asim Aslam 2020-02-06 21:37:17 +00:00
parent 4079b22c1e
commit d40b13a045

View File

@ -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
}