Increase default timeout to 30s.

This commit is contained in:
Jim McDonald
2023-07-08 22:04:05 +01:00
parent ac7e0985fb
commit 399d0eaa64
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
dev:
1.32.0:
- fix incorrect error when "deposit verify" is not given a withdrawal address
- allow truncated mnemonics (first four characters of each word)
- add deneb information to "block info"
@@ -6,6 +6,7 @@ dev:
- add proposer index to "block info"
- "block info" honours "--quiet" flag
- "block info" accepts "--block-time" option
- increase default operation timeout from 10s to 30s
1.31.0:
- initial support for deneb

View File

@@ -223,7 +223,7 @@ func addPersistentFlags() {
if err := viper.BindPFlag("connection", RootCmd.PersistentFlags().Lookup("connection")); err != nil {
panic(err)
}
RootCmd.PersistentFlags().Duration("timeout", 10*time.Second, "the time after which a network request will be considered failed. Increase this if you are running on an error-prone, high-latency or low-bandwidth connection")
RootCmd.PersistentFlags().Duration("timeout", 30*time.Second, "the time after which a network request will be considered failed. Increase this if you are running on an error-prone, high-latency or low-bandwidth connection")
if err := viper.BindPFlag("timeout", RootCmd.PersistentFlags().Lookup("timeout")); err != nil {
panic(err)
}