Skip to content

Commit 9721ff7

Browse files
committed
Style: comment unused code
1 parent 8a7cd65 commit 9721ff7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/matcher/geoip/conf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func LoadIPFile(file, code string) ([]*CIDR, error) {
3636
}
3737
defer runtime.GC() // or debug.FreeOSMemory()
3838
return geoipdat.Cidr, nil // do not cache geoip
39-
IPCache[index] = &geoipdat
39+
// IPCache[index] = &geoipdat
4040
}
4141
return IPCache[index].Cidr, nil
4242
}
@@ -53,7 +53,7 @@ func loadFile(file string) ([]byte, error) {
5353
// Do not cache file, may save RAM when there
5454
// are many files, but consume CPU each time.
5555
return bs, nil
56-
FileCache[file] = bs
56+
// FileCache[file] = bs
5757
}
5858
return FileCache[file], nil
5959
}

0 commit comments

Comments
 (0)