1
0
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:
Nikitin Aleksandr
2025-05-15 14:29:04 +03:00
parent 6bb95b522c
commit 7b05a88a6b
20 changed files with 30 additions and 30 deletions

View File

@@ -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)