From 57dab5b71cbf00af71b9b2c26b4dcd4ddac70a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Sun, 23 May 2021 19:12:13 +0100 Subject: [PATCH] remove previously redundant context. --- cmd/lotus-gateway/main.go | 5 ----- 1 file changed, 5 deletions(-) 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...,