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
|
@ -40,20 +40,20 @@ func (x *Common) Get(req *objectV2.GetRequest, stream GetObjectStream) error {
|
|||
return x.nextHandler.Get(req, stream)
|
||||
}
|
||||
|
||||
func (x *Common) Put() (PutObjectStream, error) {
|
||||
func (x *Common) Put(ctx context.Context) (PutObjectStream, error) {
|
||||
if x.state.IsMaintenance() {
|
||||
return nil, new(apistatus.NodeUnderMaintenance)
|
||||
}
|
||||
|
||||
return x.nextHandler.Put()
|
||||
return x.nextHandler.Put(ctx)
|
||||
}
|
||||
|
||||
func (x *Common) Patch() (PatchObjectStream, error) {
|
||||
func (x *Common) Patch(ctx context.Context) (PatchObjectStream, error) {
|
||||
if x.state.IsMaintenance() {
|
||||
return nil, new(apistatus.NodeUnderMaintenance)
|
||||
}
|
||||
|
||||
return x.nextHandler.Patch()
|
||||
return x.nextHandler.Patch(ctx)
|
||||
}
|
||||
|
||||
func (x *Common) Head(ctx context.Context, req *objectV2.HeadRequest) (*objectV2.HeadResponse, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue