[#168] node: Refactor node config

Resolve containedctx linter for cfg

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-03-23 17:59:14 +03:00
parent 8426d25f4b
commit a7c79c773a
20 changed files with 93 additions and 83 deletions

View file

@ -1,6 +1,7 @@
package shard
import (
"context"
"os"
"path/filepath"
"testing"
@ -51,7 +52,7 @@ func TestShardReload(t *testing.T) {
sh := New(opts...)
require.NoError(t, sh.Open())
require.NoError(t, sh.Init())
require.NoError(t, sh.Init(context.Background()))
objects := make([]objAddr, 5)
for i := range objects {