1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +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

@@ -204,11 +204,11 @@ func WaitStop() {
select {
case <-contextmain.GetContext().Done():
log.Warn("Context app is canceled.")
log.Warn("Context app is canceled. postgres_sqlx")
}
//
stopapp.WaitTotalMessagesSendingNow("Postgres sqlx")
stopapp.WaitTotalMessagesSendingNow("postgres_sqlx")
//
err := CloseConnection()
@@ -316,7 +316,7 @@ loop:
for {
select {
case <-contextmain.GetContext().Done():
log.Warn("Context app is canceled. postgres_connect.ping")
log.Warn("Context app is canceled. postgres_sqlx.ping")
break loop
case <-ticker.C:
err = port_checker.CheckPort_err(Settings.DB_HOST, Settings.DB_PORT)