@ -24,6 +24,10 @@ func main() {
log.Fatal("cannot connect to db: ", err)
}
// limit db connection
dbConn.SetConnMaxLifetime(100)
dbConn.SetMaxOpenConns(100)
store := db.NewStore(dbConn)
server, err := api.NewServer(config, store)
if err != nil {
The note is not visible to the blocked user.