[management] exclude peers for expiration job that have already been marked expired (#5970)

This commit is contained in:
Pascal Fischer
2026-04-23 16:01:54 +02:00
committed by GitHub
parent b6038e8acd
commit fa0d58d093
6 changed files with 62 additions and 12 deletions

View File

@@ -1405,6 +1405,10 @@ func (am *DefaultAccountManager) getExpiredPeers(ctx context.Context, accountID
var peers []*nbpeer.Peer
for _, peer := range peersWithExpiry {
if peer.Status.LoginExpired {
continue
}
expired, _ := peer.LoginExpired(settings.PeerLoginExpiration)
if expired {
peers = append(peers, peer)