Commit 9ed3c37c authored by Lee Brown's avatar Lee Brown

set db connection lifetime to one hour

parent 28cf4924
......@@ -393,6 +393,9 @@ func main() {
}
defer masterDb.Close()
// Enable AWS to auto pause the DB when no activity.
masterDb.SetConnMaxLifetime(time.Hour)
// =========================================================================
// Notify Email
var notifyEmail notify.Email
......
......@@ -396,6 +396,9 @@ func main() {
}
defer masterDb.Close()
// Enable AWS to auto pause the DB when no activity.
masterDb.SetConnMaxLifetime(time.Hour)
// =========================================================================
// Notify Email
var notifyEmail notify.Email
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment