重构缓存策略

This commit is contained in:
yangjiechina
2023-12-11 22:39:58 +08:00
parent 631c13303c
commit 54759a1588
5 changed files with 125 additions and 118 deletions

View File

@@ -21,7 +21,8 @@ func init() {
}
func TestServer(t *testing.T) {
stream.AppConfig.GOPCache = 2
stream.AppConfig.GOPCache = true
stream.AppConfig.MergeWriteLatency = 350
impl := serverImpl{}
addr := "0.0.0.0:1935"
tcpAddr, err := net.ResolveTCPAddr("tcp", addr)