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
|
@ -91,15 +91,15 @@ func populate() (err error) {
|
|||
return fmt.Errorf("couldn't open the metabase: %w", err)
|
||||
}
|
||||
defer func() {
|
||||
if errOnClose := db.Close(); errOnClose != nil {
|
||||
if errOnClose := db.Close(ctx); errOnClose != nil {
|
||||
err = errors.Join(
|
||||
err,
|
||||
fmt.Errorf("couldn't close the metabase: %w", db.Close()),
|
||||
fmt.Errorf("couldn't close the metabase: %w", db.Close(ctx)),
|
||||
)
|
||||
}
|
||||
}()
|
||||
|
||||
if err = db.Init(); err != nil {
|
||||
if err = db.Init(ctx); err != nil {
|
||||
return fmt.Errorf("couldn't init the metabase: %w", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue