chore: add log size limit

This commit is contained in:
duorameng
2026-04-28 14:33:43 +08:00
parent dc9ebdbf69
commit 4b698474b3
4 changed files with 104 additions and 4 deletions
+2
View File
@@ -169,6 +169,8 @@ const (
PingPeriod = (PongWait * 9) / 10
// MaxMessageSize 允许的最大消息大小
MaxMessageSize = 1024 * 1024 // 1MB
// MaxLogSize 允许的最大日志大小 (保留末尾 10MB)
MaxLogSize = 10 * 1024 * 1024 // 10MB
)
// TablePrefix 表前缀,从配置文件读取