mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
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 (
|
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,
|
||||||
|
|
Loading…
Reference in a new issue