Sfoglia il codice sorgente

fix:最大内存调整

Roc 1 anno fa
parent
commit
a4211774fe
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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()
 }