From bb43ea84a49045aeef26a964ad2fd2af1862244f Mon Sep 17 00:00:00 2001 From: wangdayong228 Date: Fri, 11 Jun 2021 11:29:27 +0800 Subject: [PATCH] Update doc (#85) * update api.md * update readme Co-authored-by: dayong --- README.md | 4 ++-- example/context/prepare.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b821b15..b492d46 100644 --- a/README.md +++ b/README.md @@ -166,9 +166,9 @@ func main() { Client applies method `UseCallRpcMiddleware` to set middleware for hooking `callRpc` method which is the core of all single rpc related methods. And `UseBatchCallRpcMiddleware` to set middleware for hooking `batchCallRPC`. -For example, use `CallRpcLogMiddleware` to log for rpc requests. +For example, use `CallRpcConsoleMiddleware` to log for rpc requests. ```golang -client.UseCallRpcMiddleware(middleware.CallRpcLogMiddleware) +client.UseCallRpcMiddleware(middleware.CallRpcConsoleMiddleware) ``` Also you could diff --git a/example/context/prepare.go b/example/context/prepare.go index a8298a7..09e7952 100644 --- a/example/context/prepare.go +++ b/example/context/prepare.go @@ -83,10 +83,10 @@ func initClient() { // init retry client option := sdk.ClientOption{ - KeystorePath: keyStorePath, - RetryCount: 10, - RetryInterval: time.Second, - RequestTimeout: time.Second * 10, + KeystorePath: keyStorePath, + RetryCount: 10, + RetryInterval: time.Second, + // RequestTimeout: time.Second * 10, } retryclient, err := sdk.NewClient(config.NodeURL, option) if err != nil {