From de35fa36bc59d13484bb21a333484e952592e028 Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Tue, 4 Jun 2024 16:38:26 +0100 Subject: [PATCH] fix: bad comment --- comm/communicator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comm/communicator.go b/comm/communicator.go index 0289e82e5..a823c46d4 100644 --- a/comm/communicator.go +++ b/comm/communicator.go @@ -293,7 +293,7 @@ func (c *Communicator) PeersStats() []*PeerStats { return stats } -// SameMajor returns true if the peer has the same major version +// sameMajor returns true if the peer has the same major version func sameMajor(appVersion, peerName string) bool { versionRegex := regexp.MustCompile(`\d+\.\d+\.\d+`) if appVersion == "" || !versionRegex.MatchString(appVersion) {