fix: wait for piece store to start before starting DAG store wrapper

This commit is contained in:
Dirk McCormick
2021-07-21 11:56:48 +02:00
parent 213dbc6bc8
commit 6057f2e6d9
3 changed files with 34 additions and 3 deletions
+1 -2
View File
@@ -599,8 +599,7 @@ func DagStoreWrapper(
lc.Append(fx.Hook{
OnStart: func(ctx context.Context) error {
dsw.Start(ctx)
return nil
return dsw.Start(ctx)
},
OnStop: func(context.Context) error {
return dsw.Close()