From 9721ff7a569a4a1c26f9a197cf76379f85f837f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E3=81=AE=E3=81=8B=E3=81=88=E3=81=A7?= Date: Thu, 8 Apr 2021 23:19:43 +0800 Subject: [PATCH] Style: comment unused code --- common/matcher/geoip/conf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/matcher/geoip/conf.go b/common/matcher/geoip/conf.go index 9c5fa42b..5f46e3a4 100644 --- a/common/matcher/geoip/conf.go +++ b/common/matcher/geoip/conf.go @@ -36,7 +36,7 @@ func LoadIPFile(file, code string) ([]*CIDR, error) { } defer runtime.GC() // or debug.FreeOSMemory() return geoipdat.Cidr, nil // do not cache geoip - IPCache[index] = &geoipdat + // IPCache[index] = &geoipdat } return IPCache[index].Cidr, nil } @@ -53,7 +53,7 @@ func loadFile(file string) ([]byte, error) { // Do not cache file, may save RAM when there // are many files, but consume CPU each time. return bs, nil - FileCache[file] = bs + // FileCache[file] = bs } return FileCache[file], nil }