diff --git a/postgres_gorm/postgres_gorm.go b/postgres_gorm/postgres_gorm.go index 07afe96c..fde74f34 100644 --- a/postgres_gorm/postgres_gorm.go +++ b/postgres_gorm/postgres_gorm.go @@ -321,6 +321,7 @@ func GetConnection() *gorm.DB { func ping_go() { ticker := time.NewTicker(60 * time.Second) + defer ticker.Stop() addr := Settings.DB_HOST + ":" + Settings.DB_PORT