From 2e596fbf1a29545129f4cbf4d8f2972f04ac5e58 Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Fri, 10 Jan 2025 13:37:38 +0300 Subject: [PATCH] use account object to get validated peers Signed-off-by: bcmmbaga --- management/server/peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/server/peer.go b/management/server/peer.go index c09e3d051..9a61b25ce 100644 --- a/management/server/peer.go +++ b/management/server/peer.go @@ -1095,9 +1095,9 @@ func (am *DefaultAccountManager) UpdateAccountPeers(ctx context.Context, account peers := account.GetPeers() - approvedPeersMap, err := am.GetValidatedPeers(ctx, account.Id) + approvedPeersMap, err := am.integratedPeerValidator.GetValidatedPeers(account.Id, account.Groups, account.Peers, account.Settings.Extra) if err != nil { - log.WithContext(ctx).Errorf("failed to send out updates to peers, failed to validate peer: %v", err) + log.WithContext(ctx).Errorf("failed to send out updates to peers, failed to get validate peers: %v", err) return }