perf: flush response after response handled (close #364)

This commit is contained in:
JustSong
2023-08-12 18:10:15 +08:00
parent 3eb357a180
commit 2586fe09eb
4 changed files with 10 additions and 2 deletions
+3
View File
@@ -26,6 +26,9 @@ func main() {
if os.Getenv("GIN_MODE") != "debug" {
gin.SetMode(gin.ReleaseMode)
}
if common.DebugEnabled {
common.SysLog("running in debug mode")
}
// Initialize SQL Database
err := model.InitDB()
if err != nil {