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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user