fix: GetMaster mutex unlock

This commit is contained in:
2026-09-06 22:34:34 +08:00
parent 35f0ba6133
commit b03f3a53a8

View File

@@ -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()