increment network serial

This commit is contained in:
Pascal Fischer
2025-06-19 12:14:26 +02:00
parent 0c7cac81f0
commit 4b44b8c46c
3 changed files with 19 additions and 0 deletions
+6
View File
@@ -960,6 +960,12 @@ func (am *DefaultAccountManager) expireAndUpdatePeers(ctx context.Context, accou
)
}
// ideally this should run in a transaction
err = am.Store.IncrementNetworkSerial(ctx, store.LockingStrengthUpdate, accountID)
if err != nil {
log.Errorf("failed to increment network serial number for account %s: %v", accountID, err)
}
if len(peerIDs) != 0 {
// this will trigger peer disconnect from the management service
am.peersUpdateManager.CloseChannels(ctx, peerIDs)