fix(lotus-sim): lint
This commit is contained in:
parent
2fdf49e7da
commit
69a8a6bc0e
@ -22,12 +22,16 @@ var infoMessageSizeSimCommand = &cli.Command{
|
|||||||
Value: 0,
|
Value: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) (err error) {
|
||||||
node, err := open(cctx)
|
node, err := open(cctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer node.Close()
|
defer func() {
|
||||||
|
if cerr := node.Close(); err == nil {
|
||||||
|
err = cerr
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
go profileOnSignal(cctx, syscall.SIGUSR2)
|
go profileOnSignal(cctx, syscall.SIGUSR2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user