Fix typo: MaxCconnections -> MaxConnections
This commit is contained in:
parent
ec2fbde979
commit
61800fb7d7
@ -29,8 +29,8 @@ var (
|
|||||||
ControlChannel = "control"
|
ControlChannel = "control"
|
||||||
// DefaultLink is default network link
|
// DefaultLink is default network link
|
||||||
DefaultLink = "network"
|
DefaultLink = "network"
|
||||||
// MaxCconnections is the max number of network client connections
|
// MaxConnections is the max number of network client connections
|
||||||
MaxCconnections = 3
|
MaxConnections = 3
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -195,9 +195,9 @@ func (n *network) resolveNodes() ([]string, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// only return MaxCconnections nodes
|
// only return MaxConnections nodes
|
||||||
if len(nodes) > MaxCconnections {
|
if len(nodes) > MaxConnections {
|
||||||
resNodes := make([]string, MaxCconnections)
|
resNodes := make([]string, MaxConnections)
|
||||||
for i, _ := range resNodes {
|
for i, _ := range resNodes {
|
||||||
resNodes[i] = nodes[i]
|
resNodes[i] = nodes[i]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user