ソースを参照

fix:最大内存调整

Roc 1 年間 前
コミット
a4211774fe
1 ファイル変更1 行追加0 行削除
  1. 1 0
      main.go

+ 1 - 0
main.go

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