Browse Source

Code comments

Vova Tkach 6 years ago
parent
commit
74ca865634
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/wrapper/wrapper.go

+ 1 - 1
engine/wrapper/wrapper.go

@@ -115,7 +115,7 @@ func (this *Wrapper) UseDatabase() error {
 		}
 	}
 
-	// Here we are connected
+	// Max 30 minutes and max 2 connection per host
 	this.DB.SetConnMaxLifetime(time.Minute * 30)
 	this.DB.SetMaxIdleConns(2)
 	this.DB.SetMaxOpenConns(2)