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:
@@ -264,11 +264,11 @@ func WaitStop() {
|
||||
|
||||
select {
|
||||
case <-contextmain.GetContext().Done():
|
||||
log.Warn("Context app is canceled.")
|
||||
log.Warn("Context app is canceled. postgres_stek")
|
||||
}
|
||||
|
||||
//
|
||||
stopapp.WaitTotalMessagesSendingNow("Postgres stek")
|
||||
stopapp.WaitTotalMessagesSendingNow("postgres_stek")
|
||||
|
||||
//
|
||||
CloseConnectionAll()
|
||||
|
||||
Reference in New Issue
Block a user