Skip to content

Commit

Permalink
fix(lotus-sim): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jun 18, 2021
1 parent 2fdf49e commit 69a8a6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/lotus-sim/info_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ var infoMessageSizeSimCommand = &cli.Command{
Value: 0,
},
},
Action: func(cctx *cli.Context) error {
Action: func(cctx *cli.Context) (err error) {
node, err := open(cctx)
if err != nil {
return err
}
defer node.Close()
defer func() {
if cerr := node.Close(); err == nil {
err = cerr
}
}()

go profileOnSignal(cctx, syscall.SIGUSR2)

Expand Down

0 comments on commit 69a8a6b

Please sign in to comment.