bench: Fix lint warnings
This commit is contained in:
parent
602d2b8ad5
commit
0832d5a7d5
@ -97,7 +97,7 @@ var importBenchCmd = &cli.Command{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
metricsprometheus.Inject()
|
metricsprometheus.Inject() //nolint:errcheck
|
||||||
vm.BatchSealVerifyParallelism = cctx.Int("batch-seal-verify-threads")
|
vm.BatchSealVerifyParallelism = cctx.Int("batch-seal-verify-threads")
|
||||||
if !cctx.Args().Present() {
|
if !cctx.Args().Present() {
|
||||||
fmt.Println("must pass car file of chain to benchmark importing")
|
fmt.Println("must pass car file of chain to benchmark importing")
|
||||||
@ -331,8 +331,8 @@ var importBenchCmd = &cli.Command{
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
io.Copy(metricsfi, resp.Body)
|
io.Copy(metricsfi, resp.Body) //nolint:errcheck
|
||||||
metricsfi.Close()
|
metricsfi.Close() //nolint:errcheck
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user