Skip to content

Commit

Permalink
cmd/geth, cmd/utils/flags, eth/ethconfig: add http rpc timeout option (
Browse files Browse the repository at this point in the history
…ethereum#23416)

documentation update
  • Loading branch information
Martin committed Aug 29, 2021
1 parent aa040b3 commit 185cc18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/utils/flags.go
Expand Up @@ -778,7 +778,8 @@ var (

HTTPRpcTimeoutFlag = cli.StringFlag{
Name: "http.timeout",
Usage: "Sets http rpc request timeout",
Usage: "Sets http rpc request timeout (use \"s\" suffix for seconds, eg: --http.timeout 10s)",
// uses time.ParseDuration() which requires a unit suffix, "h", "m", "s", "ms" etc.
Value: fmt.Sprint(ethconfig.Defaults.HTTPRpcTimeout.Nanoseconds(), "ns"),
}
)
Expand Down

0 comments on commit 185cc18

Please sign in to comment.