forked from TrueCloudLab/frostfs-node
[#1437] node: Fix contextcheck linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
6921a89061
commit
7429553266
209 changed files with 1068 additions and 1036 deletions
|
@ -1,6 +1,7 @@
|
|||
package netmap
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
|
@ -155,13 +156,13 @@ func (s *SetConfigPrm) SetValue(value any) {
|
|||
}
|
||||
|
||||
// SetConfig sets config field.
|
||||
func (c *Client) SetConfig(p SetConfigPrm) error {
|
||||
func (c *Client) SetConfig(ctx context.Context, p SetConfigPrm) error {
|
||||
prm := client.InvokePrm{}
|
||||
prm.SetMethod(setConfigMethod)
|
||||
prm.SetArgs(p.id, p.key, p.value)
|
||||
prm.InvokePrmOptional = p.InvokePrmOptional
|
||||
|
||||
_, err := c.client.Invoke(prm)
|
||||
_, err := c.client.Invoke(ctx, prm)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue