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
|
@ -64,11 +64,11 @@ func (m MetricCollector) Get(req *object.GetRequest, stream GetObjectStream) (er
|
|||
return
|
||||
}
|
||||
|
||||
func (m MetricCollector) Put() (PutObjectStream, error) {
|
||||
func (m MetricCollector) Put(ctx context.Context) (PutObjectStream, error) {
|
||||
if m.enabled {
|
||||
t := time.Now()
|
||||
|
||||
stream, err := m.next.Put()
|
||||
stream, err := m.next.Put(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -79,14 +79,14 @@ func (m MetricCollector) Put() (PutObjectStream, error) {
|
|||
start: t,
|
||||
}, nil
|
||||
}
|
||||
return m.next.Put()
|
||||
return m.next.Put(ctx)
|
||||
}
|
||||
|
||||
func (m MetricCollector) Patch() (PatchObjectStream, error) {
|
||||
func (m MetricCollector) Patch(ctx context.Context) (PatchObjectStream, error) {
|
||||
if m.enabled {
|
||||
t := time.Now()
|
||||
|
||||
stream, err := m.next.Patch()
|
||||
stream, err := m.next.Patch(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ func (m MetricCollector) Patch() (PatchObjectStream, error) {
|
|||
start: t,
|
||||
}, nil
|
||||
}
|
||||
return m.next.Patch()
|
||||
return m.next.Patch(ctx)
|
||||
}
|
||||
|
||||
func (m MetricCollector) PutSingle(ctx context.Context, request *object.PutSingleRequest) (*object.PutSingleResponse, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue