From 32467007c15059ff52ffeb430185801a78a41836 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 2 Apr 2022 13:28:18 +0700 Subject: [PATCH] snapshots: auto fix --- turbo/app/snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo/app/snapshots.go b/turbo/app/snapshots.go index 854094150..7f8f8056b 100644 --- a/turbo/app/snapshots.go +++ b/turbo/app/snapshots.go @@ -240,7 +240,7 @@ func doRetireCommand(cliCtx *cli.Context) error { snapshots := snapshotsync.NewRoSnapshots(cfg, snapshotDir) snapshots.Reopen() - br := snapshotsync.NewBlockRetire(runtime.NumCPU()/2, tmpDir, snapshots, chainDB, nil, nil) + br := snapshotsync.NewBlockRetire(runtime.NumCPU()-1, tmpDir, snapshots, chainDB, nil, nil) for i := from; i < to; i += every { br.RetireBlocksInBackground(ctx, i, i+every, *chainID, log.LvlInfo)