Merge pull request #759 from nspcc-dev/feature/default_config_values

config: add default ping timeouts config value
This commit is contained in:
Roman Khimov 2020-03-13 20:46:24 +03:00 committed by GitHub
commit 8cb9e1d85d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)