Skip to content

Commit 4fa1566

Browse files
authored
fix(pdpv0): call IndexStore.Start() after NewIndexStore (#1018)
Co-authored-by: TippyFlits <TippyFlitsUK@users.noreply.github.com>
1 parent 646852b commit 4fa1566

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/deps.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ Get it with: jq .PrivateKey ~/.lotus-miner/keystore/MF2XI2BNNJ3XILLQOJUXMYLUMU`,
381381
}
382382

383383
deps.IndexStore, err = indexstore.NewIndexStore(strings.Split(dbHost, ","), cctx.Int("db-cassandra-port"), deps.Cfg)
384+
if err != nil {
385+
return xerrors.Errorf("failed to create index store: %w", err)
386+
}
387+
err = deps.IndexStore.Start(cctx.Context, false)
384388
if err != nil {
385389
return xerrors.Errorf("failed to start index store: %w", err)
386390
}

0 commit comments

Comments
 (0)