diff --git a/cmd/integration/commands/stages.go b/cmd/integration/commands/stages.go index 4ba696e0ef4..3fafd5ddb59 100644 --- a/cmd/integration/commands/stages.go +++ b/cmd/integration/commands/stages.go @@ -1346,11 +1346,7 @@ func allSnapshots(ctx context.Context, db kv.RoDB, logger log.Logger) (*freezebl _allBorSnapshotsSingleton.OptimisticalyReopenFolder() return nil }) - g.Go(func() error { return _aggSingleton.OpenFolder() }) //TODO: open in read-only if erigon running? - err := g.Wait() - if err != nil { - panic(err) - } + g.Go(func() error { return _aggSingleton.OpenFolder() }) g.Go(func() error { chainConfig := fromdb.ChainConfig(db) var beaconConfig *clparams.BeaconChainConfig @@ -1374,6 +1370,10 @@ func allSnapshots(ctx context.Context, db kv.RoDB, logger log.Logger) (*freezebl logger.Info("[downloads]", "locked", er == nil, "at", mtime.Format("02 Jan 06 15:04 2006")) return nil }) + err := g.Wait() + if err != nil { + panic(err) + } _allSnapshotsSingleton.LogStat("blocks") _allBorSnapshotsSingleton.LogStat("bor")