@ -44,7 +44,7 @@ func Init(username, password, protocol, address, database string) error {
}
handle.SetMaxOpenConns(conns)
handle.SetMaxIdleConns(conns/4)
handle.SetMaxIdleConns(conns / 4)
handle.SetConnMaxIdleTime(time.Second * 10)
@ -43,7 +43,7 @@ func main() {
dbname := flag.String("dbname", "pokeroguedb", "database name")
tlscert := flag.String("tlscert", "", "tls certificate path")
tlskey := flag.String("tlskey", "", "tls key path")
flag.Parse()
@ -130,4 +130,3 @@ func debugHandler(router *http.ServeMux) http.Handler {
router.ServeHTTP(w, r)
})