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

This commit is contained in:
JustSong
2023-08-12 18:10:15 +08:00
parent 2a527ee436
commit 7bddc73b96
4 changed files with 10 additions and 2 deletions

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 {