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

@@ -123,11 +123,11 @@ func WaitStop() {
select {
case <-contextmain.GetContext().Done():
log.Warn("Context app is canceled. NATS.")
log.Warn("Context app is canceled. sync_exchange_connect")
}
//ждём пока отправляемых сейчас сообщений будет =0
stopapp.WaitTotalMessagesSendingNow("nats SyncExchange")
stopapp.WaitTotalMessagesSendingNow("sync_exchange_connect")
//закрываем соединение
CloseConnection()
@@ -176,7 +176,7 @@ loop:
for {
select {
case <-contextmain.GetContext().Done():
log.Warn("Context app is canceled. postgres_pgx.ping")
log.Warn("Context app is canceled. sync_exchange_connect.ping")
break loop
case <-ticker.C:
err = PprofNats1()