rpc: fix bad method error for batch requests
If a batch request contained an invalid method, the server would reply with a non-batch error response. Fix this by tracking an error for each batch element.
This commit is contained in:
@ -88,6 +88,7 @@ type rpcRequest struct {
|
||||
id interface{}
|
||||
isPubSub bool
|
||||
params interface{}
|
||||
err RPCError // invalid batch element
|
||||
}
|
||||
|
||||
// RPCError implements RPC error, is add support for error codec over regular go errors
|
||||
|
Reference in New Issue
Block a user