mux to mtx
This commit is contained in:
parent
4079b22c1e
commit
d40b13a045
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user