Browse Source

fix:最大内存调整

Roc 1 year ago
parent
commit
a4211774fe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main.go

+ 1 - 0
main.go

@@ -26,6 +26,7 @@ func main() {
 	// 异常处理
 	web.ErrorController(&controllers.ErrorController{})
 
+	web.BConfig.MaxMemory = 1024 * 1024 * 128
 	web.BConfig.RecoverFunc = Recover
 	web.Run()
 }