Fix typo: MaxCconnections -> MaxConnections

This commit is contained in:
Milos Gajdos 2019-10-08 15:15:50 +01:00
parent ec2fbde979
commit 61800fb7d7
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -29,8 +29,8 @@ var (
ControlChannel = "control"
// DefaultLink is default network link
DefaultLink = "network"
// MaxCconnections is the max number of network client connections
MaxCconnections = 3
// MaxConnections is the max number of network client connections
MaxConnections = 3
)
var (
@ -195,9 +195,9 @@ func (n *network) resolveNodes() ([]string, error) {
}
}
// only return MaxCconnections nodes
if len(nodes) > MaxCconnections {
resNodes := make([]string, MaxCconnections)
// only return MaxConnections nodes
if len(nodes) > MaxConnections {
resNodes := make([]string, MaxConnections)
for i, _ := range resNodes {
resNodes[i] = nodes[i]
}