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 control
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/ecdsa"
|
||||
"sync/atomic"
|
||||
|
||||
|
@ -45,11 +46,11 @@ type NodeState interface {
|
|||
//
|
||||
// If status is control.NetmapStatus_MAINTENANCE and maintenance is allowed
|
||||
// in the network settings, the node additionally starts local maintenance.
|
||||
SetNetmapStatus(st control.NetmapStatus) error
|
||||
SetNetmapStatus(ctx context.Context, st control.NetmapStatus) error
|
||||
|
||||
// ForceMaintenance works like SetNetmapStatus(control.NetmapStatus_MAINTENANCE)
|
||||
// but starts local maintenance regardless of the network settings.
|
||||
ForceMaintenance() error
|
||||
ForceMaintenance(ctx context.Context) error
|
||||
|
||||
GetNetmapStatus() (control.NetmapStatus, uint64, error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue