fix net_info call on light rpc (#6514)

This commit is contained in:
Callum Waters
2021-05-31 15:46:49 +02:00
committed by GitHub
parent 7bf84d9d7f
commit c0fcc5f6bb

View File

@@ -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())
}
}