mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-25 19:56:46 +00:00
bufferUpdate mu unlock after op finish
This commit is contained in:
@@ -1269,8 +1269,8 @@ func (am *DefaultAccountManager) BufferUpdateAccountPeers(ctx context.Context, a
|
|||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
time.Sleep(time.Duration(am.updateAccountPeersBufferInterval.Load()))
|
// time.Sleep(time.Duration(am.updateAccountPeersBufferInterval.Load()))
|
||||||
lock.Unlock()
|
defer lock.Unlock()
|
||||||
log.WithContext(ctx).Debugf("BufferUpdateAccountPeers for an account %s - in progress", accountID)
|
log.WithContext(ctx).Debugf("BufferUpdateAccountPeers for an account %s - in progress", accountID)
|
||||||
tn := time.Now()
|
tn := time.Now()
|
||||||
am.UpdateAccountPeers(ctx, accountID)
|
am.UpdateAccountPeers(ctx, accountID)
|
||||||
|
|||||||
Reference in New Issue
Block a user