优化代码

This commit is contained in:
刘祥超
2023-08-08 12:02:21 +08:00
parent 8ac115f865
commit f4258ed00e
12 changed files with 26 additions and 19 deletions

View File

@@ -122,6 +122,7 @@ func TestHTTPAccessLogQueue_Memory(t *testing.T) {
}
runtime.GC()
_ = accessLogs
// will not release automatically
func() {
@@ -131,6 +132,7 @@ func TestHTTPAccessLogQueue_Memory(t *testing.T) {
RequestPath: "https://goedge.cn/hello/world",
})
}
_ = accessLogs1
}()
time.Sleep(5 * time.Second)