[management] network map builder concurrent batch processing for peer updates (#5040)

This commit is contained in:
Vlad
2026-01-06 19:25:55 +01:00
committed by GitHub
parent 9bd578d4ea
commit 7142d45ef3
6 changed files with 390 additions and 94 deletions

View File

@@ -994,6 +994,12 @@ func (am *DefaultAccountManager) expireAndUpdatePeers(ctx context.Context, accou
)
}
if len(peerIDs) != 0 {
if err := am.Store.IncrementNetworkSerial(ctx, accountID); err != nil {
return err
}
}
err = am.networkMapController.OnPeersUpdated(ctx, accountID, peerIDs)
if err != nil {
return fmt.Errorf("notify network map controller of peer update: %w", err)