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"
|
||||
"crypto/elliptic"
|
||||
"fmt"
|
||||
|
||||
|
@ -23,7 +24,7 @@ func (u *UpdateIRPrm) SetKeys(keys keys.PublicKeys) {
|
|||
}
|
||||
|
||||
// UpdateInnerRing updates inner ring keys.
|
||||
func (c *Client) UpdateInnerRing(p UpdateIRPrm) error {
|
||||
func (c *Client) UpdateInnerRing(ctx context.Context, p UpdateIRPrm) error {
|
||||
args := make([][]byte, len(p.keys))
|
||||
for i := range args {
|
||||
args[i] = p.keys[i].Bytes()
|
||||
|
@ -34,7 +35,7 @@ func (c *Client) UpdateInnerRing(p UpdateIRPrm) error {
|
|||
prm.SetArgs(args)
|
||||
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