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
|
@ -82,7 +82,7 @@ func (c *cache) closeStorage(ctx context.Context, shrink bool) error {
|
|||
return nil
|
||||
}
|
||||
if !shrink {
|
||||
if err := c.fsTree.Close(); err != nil {
|
||||
if err := c.fsTree.Close(ctx); err != nil {
|
||||
return fmt.Errorf("can't close write-cache storage: %w", err)
|
||||
}
|
||||
return nil
|
||||
|
@ -101,7 +101,7 @@ func (c *cache) closeStorage(ctx context.Context, shrink bool) error {
|
|||
return fmt.Errorf("failed to check write-cache items: %w", err)
|
||||
}
|
||||
}
|
||||
if err := c.fsTree.Close(); err != nil {
|
||||
if err := c.fsTree.Close(ctx); err != nil {
|
||||
return fmt.Errorf("can't close write-cache storage: %w", err)
|
||||
}
|
||||
if empty {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue