Pass context to NewKVStore (#8125)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terence tsao
2020-12-15 14:07:01 -08:00
committed by GitHub
parent 0449cd3450
commit dc27cd7a1e
11 changed files with 21 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ func main() {
defer resetCfg()
flag.Parse()
fmt.Println("Starting process...")
d, err := db.NewDB(*datadir, cache.NewStateSummaryCache())
d, err := db.NewDB(context.Background(), *datadir, cache.NewStateSummaryCache())
if err != nil {
panic(err)
}