Skip to content

Commit

Permalink
bench: Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Oct 22, 2020
1 parent 602d2b8 commit 4d73d9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/lotus-bench/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d73d9c

Please sign in to comment.