bench: Fix lint warnings

This commit is contained in:
Łukasz Magiera 2020-10-22 14:57:55 +02:00
parent 602d2b8ad5
commit 0832d5a7d5

View File

@ -97,7 +97,7 @@ var importBenchCmd = &cli.Command{
},
},
Action: func(cctx *cli.Context) error {
metricsprometheus.Inject()
metricsprometheus.Inject() //nolint:errcheck
vm.BatchSealVerifyParallelism = cctx.Int("batch-seal-verify-threads")
if !cctx.Args().Present() {
fmt.Println("must pass car file of chain to benchmark importing")
@ -331,8 +331,8 @@ var importBenchCmd = &cli.Command{
return err
}
io.Copy(metricsfi, resp.Body)
metricsfi.Close()
io.Copy(metricsfi, resp.Body) //nolint:errcheck
metricsfi.Close() //nolint:errcheck
}
return nil