Skip to content

Commit

Permalink
Properly close repo after snapshot import
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Dec 28, 2024
1 parent 155d145 commit 1d01e1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/lotus/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1d01e1c

Please sign in to comment.