implement new map builder full rebuilder for other parts

This commit is contained in:
crn4
2025-09-05 12:30:13 +02:00
parent 0ae2241573
commit ca85aa9b8f
18 changed files with 247 additions and 26 deletions

View File

@@ -937,6 +937,10 @@ func (am *DefaultAccountManager) expireAndUpdatePeers(ctx context.Context, accou
}
dnsDomain := am.GetDNSDomain(settings)
account, err := am.Store.GetAccount(ctx, accountID)
if err != nil {
return err
}
var peerIDs []string
for _, peer := range peers {
// nolint:staticcheck
@@ -956,6 +960,10 @@ func (am *DefaultAccountManager) expireAndUpdatePeers(ctx context.Context, accou
peer.UserID, peer.ID, accountID,
activity.PeerLoginExpired, peer.EventMeta(dnsDomain),
)
if am.expNewNetworkMap {
am.updatePeerInNetworkMapCache(account, peer)
}
}
if len(peerIDs) != 0 {