From 13aad5fc5c7170f1042e3eb2fd56865109b1ada9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Nguyen?= <45769515+fnguyen-tc@users.noreply.github.com> Date: Wed, 31 Jan 2024 00:26:11 -0500 Subject: [PATCH] Update README.md (#58) DefaultRequestID instead of DefaultRPCRequestID --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9b6fdb2..44b1933 100644 --- a/README.md +++ b/README.md @@ -502,16 +502,16 @@ func main() { ### Change default RPCRequestID By default, the client will set the id of an RPCRequest to 0. -This can be changed by setting the RPCClientOpts.DefaultRPCRequestID to a custom value: +This can be changed by setting the RPCClientOpts.DefaultRequestID to a custom value: ```go func main() { rpcClient := jsonrpc.NewClientWithOpts("http://my-rpc-service:8080/rpc", &jsonrpc.RPCClientOpts{ - DefaultRPCRequestID: 1, + DefaultRequestID: 1, }) // requests now have default id 1 } ``` -You may also use NewRequestWithID() to set a custom id when creating a raw request. \ No newline at end of file +You may also use NewRequestWithID() to set a custom id when creating a raw request.