mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 23:25:22 +00:00
network: fix minor gofmt issues (spotted by goreportcard)
This commit is contained in:
parent
c8ba173493
commit
c896e2b731
2 changed files with 4 additions and 4 deletions
|
@ -11,9 +11,9 @@ type Ping struct {
|
||||||
// Index of the last block.
|
// Index of the last block.
|
||||||
LastBlockIndex uint32
|
LastBlockIndex uint32
|
||||||
// Timestamp.
|
// Timestamp.
|
||||||
Timestamp uint32
|
Timestamp uint32
|
||||||
// Nonce of the server.
|
// Nonce of the server.
|
||||||
Nonce uint32
|
Nonce uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPing creates new Ping payload.
|
// NewPing creates new Ping payload.
|
||||||
|
|
|
@ -88,8 +88,8 @@ func NewServerConfig(cfg config.Config) ServerConfig {
|
||||||
Seeds: protoConfig.SeedList,
|
Seeds: protoConfig.SeedList,
|
||||||
DialTimeout: appConfig.DialTimeout * time.Second,
|
DialTimeout: appConfig.DialTimeout * time.Second,
|
||||||
ProtoTickInterval: appConfig.ProtoTickInterval * time.Second,
|
ProtoTickInterval: appConfig.ProtoTickInterval * time.Second,
|
||||||
PingInterval: appConfig.PingInterval * time.Second,
|
PingInterval: appConfig.PingInterval * time.Second,
|
||||||
PingTimeout: appConfig.PingTimeout * time.Second,
|
PingTimeout: appConfig.PingTimeout * time.Second,
|
||||||
MaxPeers: appConfig.MaxPeers,
|
MaxPeers: appConfig.MaxPeers,
|
||||||
AttemptConnPeers: appConfig.AttemptConnPeers,
|
AttemptConnPeers: appConfig.AttemptConnPeers,
|
||||||
MinPeers: appConfig.MinPeers,
|
MinPeers: appConfig.MinPeers,
|
||||||
|
|
Loading…
Reference in a new issue