fix: GetMaster mutex unlock
This commit is contained in:
@@ -18,8 +18,8 @@ var (
|
|||||||
|
|
||||||
func GetMaster() map[string]any {
|
func GetMaster() map[string]any {
|
||||||
mu.RLock()
|
mu.RLock()
|
||||||
defer mu.RUnlock()
|
|
||||||
if cache != nil {
|
if cache != nil {
|
||||||
|
mu.RUnlock()
|
||||||
return cache
|
return cache
|
||||||
}
|
}
|
||||||
mu.RUnlock()
|
mu.RUnlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user