mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
Merge branch 'master' into shared_balances
Conflicts: engine/accountlock.go
This commit is contained in:
@@ -82,6 +82,10 @@ func (cm *AccountLock) GuardMany(names []string, handler func() (float64, error)
|
||||
}
|
||||
lock <- true
|
||||
reply, err = handler()
|
||||
}
|
||||
reply, err = handler()
|
||||
for _, name := range names {
|
||||
lock := AccLock.queue[name]
|
||||
<-lock
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user