forked from TrueCloudLab/frostfs-api-go
[#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 <leonard@nspcc.ru>
This commit is contained in:
parent
a61c15b990
commit
8128d598d0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue