[#839] service/object: Add high level functions to control request forwarding
Applicable for object/get execution context. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
b3464e8140
commit
b97cdbea9e
3 changed files with 17 additions and 6 deletions
|
@ -82,7 +82,7 @@ func (c *clientCacheWrapper) get(addr network.AddressGroup) (getClient, error) {
|
|||
}
|
||||
|
||||
func (c *clientWrapper) getObject(exec *execCtx, addr network.AddressGroup) (*objectSDK.Object, error) {
|
||||
if exec.prm.forwarder != nil {
|
||||
if exec.isForwardingEnabled() {
|
||||
return exec.prm.forwarder(addr, c.client)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue