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

@@ -237,7 +237,7 @@ func CloseConnection_err() error {
mutex_Connect.Lock()
defer mutex_Connect.Unlock()
err := GetConnection().Close(ctx)
err := Conn.Close(ctx)
return err
}
@@ -248,11 +248,11 @@ func WaitStop() {
select {
case <-contextmain.GetContext().Done():
log.Warn("Context app is canceled.")
log.Warn("Context app is canceled. postgres_pgx")
}
//
stopapp.WaitTotalMessagesSendingNow("Postgres pgx")
stopapp.WaitTotalMessagesSendingNow("postgres_pgx")
//
CloseConnection()