From 6cc4a9281ad23283c4a2c145346d34d1fc7f13c2 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 20 Jul 2021 19:01:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=BC=E5=BC=8F=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/task_sync_api_nodes.go | 2 -- internal/utils/ip.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/nodes/task_sync_api_nodes.go b/internal/nodes/task_sync_api_nodes.go index d497128..74b1da0 100644 --- a/internal/nodes/task_sync_api_nodes.go +++ b/internal/nodes/task_sync_api_nodes.go @@ -108,8 +108,6 @@ func (this *SyncAPINodesTask) isSame(endpoints1 []string, endpoints2 []string) b return strings.Join(endpoints1, "&") == strings.Join(endpoints2, "&") } - - func (this *SyncAPINodesTask) testEndpoints(endpoints []string) bool { if len(endpoints) == 0 { return false diff --git a/internal/utils/ip.go b/internal/utils/ip.go index eb85eb6..417073d 100644 --- a/internal/utils/ip.go +++ b/internal/utils/ip.go @@ -8,7 +8,7 @@ import ( "strings" ) -// 将IP转换为整型 +// IP2Long 将IP转换为整型 // 注意IPv6没有顺序 func IP2Long(ip string) uint64 { if len(ip) == 0 {