diff --git a/light/proxy/routes.go b/light/proxy/routes.go index 229bf7dc7..62d70f545 100644 --- a/light/proxy/routes.go +++ b/light/proxy/routes.go @@ -69,10 +69,10 @@ func makeStatusFunc(c *lrpc.Client) rpcStatusFunc { } } -type rpcNetInfoFunc func(ctx *rpctypes.Context, minHeight, maxHeight int64) (*ctypes.ResultNetInfo, error) +type rpcNetInfoFunc func(ctx *rpctypes.Context) (*ctypes.ResultNetInfo, error) func makeNetInfoFunc(c *lrpc.Client) rpcNetInfoFunc { - return func(ctx *rpctypes.Context, minHeight, maxHeight int64) (*ctypes.ResultNetInfo, error) { + return func(ctx *rpctypes.Context) (*ctypes.ResultNetInfo, error) { return c.NetInfo(ctx.Context()) } }