From 61800fb7d71d07f31950b0d6a217de434fcdbbf2 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Tue, 8 Oct 2019 15:15:50 +0100 Subject: [PATCH] Fix typo: MaxCconnections -> MaxConnections --- network/default.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/network/default.go b/network/default.go index 7e6abc4a..19a414f4 100644 --- a/network/default.go +++ b/network/default.go @@ -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] }