From 1d01e1c745666cca114559de514a60994f6a2deb Mon Sep 17 00:00:00 2001 From: zenground0 Date: Sat, 28 Dec 2024 16:53:53 +0530 Subject: [PATCH] Properly close repo after snapshot import --- cmd/lotus/daemon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/lotus/daemon.go b/cmd/lotus/daemon.go index 707cd49dd4..0b19b3ff75 100644 --- a/cmd/lotus/daemon.go +++ b/cmd/lotus/daemon.go @@ -545,6 +545,7 @@ func ImportChain(ctx context.Context, r repo.Repo, fname string, snapshot bool) if err != nil { return err } + defer lr.Close() //nolint:errcheck c, err := lr.Config() if err != nil {