bufferUpdate mu unlock after op finish

This commit is contained in:
crn4
2025-07-09 17:53:37 +02:00
parent 0957defa54
commit 3945d2b170

View File

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