Explorar o código

fix:最大内存调整

Roc hai 1 ano
pai
achega
a4211774fe
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()
 }