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:
Roman Khimov 2022-12-07 21:29:40 +03:00
parent 0d65071abc
commit 3ce1fc41a4

View file

@ -3,6 +3,7 @@ package config
import ( import (
"fmt" "fmt"
"os" "os"
"time"
"github.com/nspcc-dev/neo-go/pkg/config/netmode" "github.com/nspcc-dev/neo-go/pkg/config/netmode"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
@ -66,8 +67,8 @@ func LoadFile(configPath string) (Config, error) {
config := Config{ config := Config{
ApplicationConfiguration: ApplicationConfiguration{ ApplicationConfiguration: ApplicationConfiguration{
P2P: P2P{ P2P: P2P{
PingInterval: 30, PingInterval: 30 * time.Second,
PingTimeout: 30, PingTimeout: 90 * time.Second,
}, },
RPC: RPC{ RPC: RPC{
MaxIteratorResultItems: DefaultMaxIteratorResultItems, MaxIteratorResultItems: DefaultMaxIteratorResultItems,