mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 19:29:39 +00:00
config: add default ping timeouts config value
closes #680 Problem: cannot connect to neo-go node with a client with default ping timeouts values Solution: added default config values for PingInterval=30 and PingTimeout=90
This commit is contained in:
parent
ba1c3bfccb
commit
e5c6fd0aae
1 changed files with 4 additions and 1 deletions
|
@ -155,7 +155,10 @@ func Load(path string, netMode NetMode) (Config, error) {
|
|||
ProtocolConfiguration: ProtocolConfiguration{
|
||||
SystemFee: SystemFee{},
|
||||
},
|
||||
ApplicationConfiguration: ApplicationConfiguration{},
|
||||
ApplicationConfiguration: ApplicationConfiguration{
|
||||
PingInterval: 30,
|
||||
PingTimeout: 90,
|
||||
},
|
||||
}
|
||||
|
||||
err = yaml.Unmarshal(configData, &config)
|
||||
|
|
Loading…
Reference in a new issue