[management] get peer groups without lock (#4280)

This commit is contained in:
Pascal Fischer
2025-08-05 01:11:44 +02:00
committed by GitHub
parent beb66208a0
commit d1e0b7f4fb
2 changed files with 2 additions and 2 deletions

View File

@@ -1525,7 +1525,7 @@ func (am *DefaultAccountManager) getInactivePeers(ctx context.Context, accountID
// GetPeerGroups returns groups that the peer is part of.
func (am *DefaultAccountManager) GetPeerGroups(ctx context.Context, accountID, peerID string) ([]*types.Group, error) {
return am.Store.GetPeerGroups(ctx, store.LockingStrengthShare, accountID, peerID)
return am.Store.GetPeerGroups(ctx, store.LockingStrengthNone, accountID, peerID)
}
// getPeerGroupIDs returns the IDs of the groups that the peer is part of.