Browse Source

fix net_info call on light rpc (#6514)

pull/6524/head
Callum Waters 4 years ago
committed by GitHub
parent
commit
c0fcc5f6bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      light/proxy/routes.go

+ 2
- 2
light/proxy/routes.go 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())
}
}


Loading…
Cancel
Save