diff --git a/master/master.go b/master/master.go index 4426fc2..6355434 100644 --- a/master/master.go +++ b/master/master.go @@ -18,8 +18,8 @@ var ( func GetMaster() map[string]any { mu.RLock() - defer mu.RUnlock() if cache != nil { + mu.RUnlock() return cache } mu.RUnlock()