From 2e4fe2407450a6a7eddd665ade740c2c21806920 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Mon, 26 Feb 2024 16:18:41 +0100 Subject: [PATCH] Fix return params of SyncPeer --- integrations/approval.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/approval.go b/integrations/approval.go index 5b5f1f6..584e58e 100644 --- a/integrations/approval.go +++ b/integrations/approval.go @@ -16,6 +16,6 @@ func (v *IntegratedApprovalImpl) PreparePeer(_ string, peer *nbpeer.Peer, _ []st return peer.Copy() } -func (v *IntegratedApprovalImpl) SyncPeer(string, *nbpeer.Peer, []string, *account.ExtraSettings) (bool, error) { - return true, nil +func (v *IntegratedApprovalImpl) SyncPeer(accountID string, peer *nbpeer.Peer, peersGroup []string, extraSettings *account.ExtraSettings) (*nbpeer.Peer, bool) { + return peer.Copy(), false }