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 {