From 8128d598d022dea523bc3365b65479312d018f3d Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 9 Apr 2021 11:41:58 +0300 Subject: [PATCH] [#265] pkg/client: Change trust type in SendIntermediateTrustPrm Change accepted/returned value type of `SetTrust` / `Trust` methods of `SendIntermediateTrustPrm` structure to `reputation.PeerToPeerTrust`. Signed-off-by: Leonard Lyubich --- pkg/client/reputation.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/client/reputation.go b/pkg/client/reputation.go index 261da88..2ee6bc1 100644 --- a/pkg/client/reputation.go +++ b/pkg/client/reputation.go @@ -89,7 +89,7 @@ func (c *clientImpl) SendLocalTrust(ctx context.Context, prm SendLocalTrustPrm, type SendIntermediateTrustPrm struct { iter uint32 - trust *reputation.Trust + trust *reputation.PeerToPeerTrust } // Iteration returns sequence number of the iteration. @@ -103,12 +103,12 @@ func (x *SendIntermediateTrustPrm) SetIteration(iter uint32) { } // Trust returns current global trust value computed at the specified iteration. -func (x SendIntermediateTrustPrm) Trust() *reputation.Trust { +func (x SendIntermediateTrustPrm) Trust() *reputation.PeerToPeerTrust { return x.trust } // SetTrust sets current global trust value computed at the specified iteration. -func (x *SendIntermediateTrustPrm) SetTrust(trust *reputation.Trust) { +func (x *SendIntermediateTrustPrm) SetTrust(trust *reputation.PeerToPeerTrust) { x.trust = trust }