From ce7385119ab75665f5a39a010ed61a9fc09612c1 Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Tue, 14 Jan 2025 20:58:43 +0300 Subject: [PATCH] Use integrated validator direct Signed-off-by: bcmmbaga --- management/server/peer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/management/server/peer.go b/management/server/peer.go index 78bb1dd8c..d9a58ed7f 100644 --- a/management/server/peer.go +++ b/management/server/peer.go @@ -101,7 +101,7 @@ func (am *DefaultAccountManager) GetPeers(ctx context.Context, accountID, userID return nil, err } - approvedPeersMap, err := am.GetValidatedPeers(ctx, accountID) + approvedPeersMap, err := am.integratedPeerValidator.GetValidatedPeers(accountID, account.Groups, account.Peers, account.Settings.Extra) if err != nil { return nil, err } @@ -1057,12 +1057,12 @@ func (am *DefaultAccountManager) GetPeer(ctx context.Context, accountID, peerID, return nil, err } - approvedPeersMap, err := am.GetValidatedPeers(ctx, accountID) + account, err := am.requestBuffer.GetAccountWithBackpressure(ctx, accountID) if err != nil { return nil, err } - account, err := am.requestBuffer.GetAccountWithBackpressure(ctx, accountID) + approvedPeersMap, err := am.integratedPeerValidator.GetValidatedPeers(accountID, account.Groups, account.Peers, account.Settings.Extra) if err != nil { return nil, err }