diff --git a/cmd/lotus-gateway/main.go b/cmd/lotus-gateway/main.go index 82244f205..4d8f5f382 100644 --- a/cmd/lotus-gateway/main.go +++ b/cmd/lotus-gateway/main.go @@ -1,7 +1,6 @@ package main import ( - "context" "net" "os" @@ -82,10 +81,6 @@ var runCmd = &cli.Command{ Action: func(cctx *cli.Context) error { log.Info("Starting lotus gateway") - ctx := lcli.ReqContext(cctx) - ctx, cancel := context.WithCancel(ctx) - defer cancel() - // Register all metric views if err := view.Register( metrics.ChainNodeViews...,