This commit is contained in:
aozhiwei 2024-08-07 11:55:09 +08:00
parent d738c1b946
commit db0139e719

View File

@ -39,7 +39,7 @@ func (this *sApiForward) init() {
for i := 0; i < len(this.userCache); i++ {
p := new(SApiForwardLockCache)
p.lock = new(sync.Mutex)
p.userHash = new(map[string]*SApiForwardLock)
p.userHash = &map[string]*SApiForwardLock{}
this.userCache[i] = p
}
}