Merge branch 'raulk/refactor-rpc' into raulk/itests

This commit is contained in:
Raúl Kripalani 2021-05-23 22:00:49 +01:00
commit f6a7f21def

View File

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