fix/355-increase-tree-service-client-cache-size #359
2 changed files with 0 additions and 20 deletions
|
@ -19,8 +19,6 @@ type Client interface {
|
|||
ObjectSearchInit(context.Context, client.PrmObjectSearch) (*client.ObjectListReader, error)
|
||||
ObjectRangeInit(context.Context, client.PrmObjectRange) (*client.ObjectRangeReader, 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
|
||||
Close() error
|
||||
}
|
||||
|
|
18
pkg/network/cache/multi.go
vendored
18
pkg/network/cache/multi.go
vendored
|
@ -277,24 +277,6 @@ func (x *multiClient) ObjectSearchInit(ctx context.Context, p client.PrmObjectSe
|
|||
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 {
|
||||
panic("multiClient.ExecRaw() must not be called")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue