mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +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() {
|
||||
time.Sleep(time.Duration(am.updateAccountPeersBufferInterval.Load()))
|
||||
lock.Unlock()
|
||||
// time.Sleep(time.Duration(am.updateAccountPeersBufferInterval.Load()))
|
||||
defer lock.Unlock()
|
||||
log.WithContext(ctx).Debugf("BufferUpdateAccountPeers for an account %s - in progress", accountID)
|
||||
tn := time.Now()
|
||||
am.UpdateAccountPeers(ctx, accountID)
|
||||
|
||||
Reference in New Issue
Block a user