config: fix the default P2P ping settings
54c2aa8582
broke them, they're in seconds and we
have a 90s timeout.
This commit is contained in:
parent
0d65071abc
commit
3ce1fc41a4
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ package config
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
@ -66,8 +67,8 @@ func LoadFile(configPath string) (Config, error) {
|
|||
config := Config{
|
||||
ApplicationConfiguration: ApplicationConfiguration{
|
||||
P2P: P2P{
|
||||
PingInterval: 30,
|
||||
PingTimeout: 30,
|
||||
PingInterval: 30 * time.Second,
|
||||
PingTimeout: 90 * time.Second,
|
||||
},
|
||||
RPC: RPC{
|
||||
MaxIteratorResultItems: DefaultMaxIteratorResultItems,
|
||||
|
|
Loading…
Reference in a new issue