feat: Use reqData to load log info

This commit is contained in:
Roi Feng
2025-04-28 21:52:42 -04:00
parent c0524c56e7
commit af4af7346a
3 changed files with 19 additions and 22 deletions

View File

@ -56,7 +56,6 @@ func main() {
sharedMem := &dataType.SharedMemory{
HTTPFloodSpeedLimitCounter: dataType.NewCounter(max(runtime.NumCPU()*8, 16), utils.FindMaxRateTime(ruleSet.HTTPFloodRule.HTTPFloodSpeedLimit)),
HTTPFloodSameURILimitCounter: dataType.NewCounter(max(runtime.NumCPU()*8, 16), utils.FindMaxRateTime(ruleSet.HTTPFloodRule.HTTPFloodSameURILimit)),
Logger: utils.NewManager(cfg.LogPath),
}
//GC