forked from TrueCloudLab/frostfs-node
[#208] searchsvc: Refactor request forwarding
Resolve funlen & gocognit linters for toPrm method. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
0b38419fbf
commit
d85703a963
4 changed files with 113 additions and 87 deletions
|
@ -80,7 +80,7 @@ func (c *clientConstructorWrapper) get(info client.NodeInfo) (searchClient, erro
|
|||
|
||||
func (c *clientWrapper) searchObjects(ctx context.Context, exec *execCtx, info client.NodeInfo) ([]oid.ID, error) {
|
||||
if exec.prm.forwarder != nil {
|
||||
return exec.prm.forwarder(info, c.client)
|
||||
return exec.prm.forwarder(ctx, info, c.client)
|
||||
}
|
||||
|
||||
var sessionInfo *util.SessionInfo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue