mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-15 01:09:20 +02:00
Style: comment unused code
This commit is contained in:
parent
8a7cd65fc2
commit
9721ff7a56
|
@ -36,7 +36,7 @@ func LoadIPFile(file, code string) ([]*CIDR, error) {
|
||||||
}
|
}
|
||||||
defer runtime.GC() // or debug.FreeOSMemory()
|
defer runtime.GC() // or debug.FreeOSMemory()
|
||||||
return geoipdat.Cidr, nil // do not cache geoip
|
return geoipdat.Cidr, nil // do not cache geoip
|
||||||
IPCache[index] = &geoipdat
|
// IPCache[index] = &geoipdat
|
||||||
}
|
}
|
||||||
return IPCache[index].Cidr, nil
|
return IPCache[index].Cidr, nil
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ func loadFile(file string) ([]byte, error) {
|
||||||
// Do not cache file, may save RAM when there
|
// Do not cache file, may save RAM when there
|
||||||
// are many files, but consume CPU each time.
|
// are many files, but consume CPU each time.
|
||||||
return bs, nil
|
return bs, nil
|
||||||
FileCache[file] = bs
|
// FileCache[file] = bs
|
||||||
}
|
}
|
||||||
return FileCache[file], nil
|
return FileCache[file], nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue