network: fix minor gofmt issues (spotted by goreportcard)

This commit is contained in:
Roman Khimov 2020-02-08 15:53:08 +03:00
parent c8ba173493
commit c896e2b731
2 changed files with 4 additions and 4 deletions

View file

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

View file

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