mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-24 22:53:52 +02:00
сделал defer stopapp.GetWaitGroup_Main().Done()
This commit is contained in:
@@ -268,7 +268,7 @@ func WaitStop() {
|
||||
|
||||
select {
|
||||
case <-contextmain.GetContext().Done():
|
||||
log.Warn("Context app is canceled. Postgres gorm.")
|
||||
log.Warn("Context app is canceled. postgres_gorm2")
|
||||
}
|
||||
|
||||
//
|
||||
@@ -456,7 +456,7 @@ loop:
|
||||
for {
|
||||
select {
|
||||
case <-contextmain.GetContext().Done():
|
||||
log.Warn("Context app is canceled. postgres_gorm.ping")
|
||||
log.Warn("Context app is canceled. postgres_gorm2.ping")
|
||||
break loop
|
||||
case <-ticker.C:
|
||||
err = port_checker.CheckPort_err(Settings.DB_HOST, Settings.DB_PORT)
|
||||
|
||||
Reference in New Issue
Block a user