forked from TrueCloudLab/frostfs-node
[#247] client: Drop reputation related RPCs
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>remove-subnet
parent
beabed788c
commit
070154d506
|
@ -19,8 +19,6 @@ type Client interface {
|
||||||
ObjectSearchInit(context.Context, client.PrmObjectSearch) (*client.ObjectListReader, error)
|
ObjectSearchInit(context.Context, client.PrmObjectSearch) (*client.ObjectListReader, error)
|
||||||
ObjectRangeInit(context.Context, client.PrmObjectRange) (*client.ObjectRangeReader, error)
|
ObjectRangeInit(context.Context, client.PrmObjectRange) (*client.ObjectRangeReader, error)
|
||||||
ObjectHash(context.Context, client.PrmObjectHash) (*client.ResObjectHash, error)
|
ObjectHash(context.Context, client.PrmObjectHash) (*client.ResObjectHash, error)
|
||||||
AnnounceLocalTrust(context.Context, client.PrmAnnounceLocalTrust) (*client.ResAnnounceLocalTrust, error)
|
|
||||||
AnnounceIntermediateTrust(context.Context, client.PrmAnnounceIntermediateTrust) (*client.ResAnnounceIntermediateTrust, error)
|
|
||||||
ExecRaw(f func(client *rawclient.Client) error) error
|
ExecRaw(f func(client *rawclient.Client) error) error
|
||||||
Close() error
|
Close() error
|
||||||
}
|
}
|
||||||
|
|
|
@ -277,24 +277,6 @@ func (x *multiClient) ObjectSearchInit(ctx context.Context, p client.PrmObjectSe
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *multiClient) AnnounceLocalTrust(ctx context.Context, prm client.PrmAnnounceLocalTrust) (res *client.ResAnnounceLocalTrust, err error) {
|
|
||||||
err = x.iterateClients(ctx, func(c clientcore.Client) error {
|
|
||||||
res, err = c.AnnounceLocalTrust(ctx, prm)
|
|
||||||
return err
|
|
||||||
})
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *multiClient) AnnounceIntermediateTrust(ctx context.Context, prm client.PrmAnnounceIntermediateTrust) (res *client.ResAnnounceIntermediateTrust, err error) {
|
|
||||||
err = x.iterateClients(ctx, func(c clientcore.Client) error {
|
|
||||||
res, err = c.AnnounceIntermediateTrust(ctx, prm)
|
|
||||||
return err
|
|
||||||
})
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *multiClient) ExecRaw(f func(client *rawclient.Client) error) error {
|
func (x *multiClient) ExecRaw(f func(client *rawclient.Client) error) error {
|
||||||
panic("multiClient.ExecRaw() must not be called")
|
panic("multiClient.ExecRaw() must not be called")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue