1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-30 23:44:42 +02:00

сделал defer stopapp.GetWaitGroup_Main().Done()

This commit is contained in:
Nikitin Aleksandr
2025-05-15 14:08:51 +03:00
parent 18ee0e3d6b
commit 6bb95b522c
22 changed files with 40 additions and 33 deletions

View File

@@ -204,6 +204,7 @@ func CloseConnection_err() error {
// WaitStop - ожидает отмену глобального контекста
func WaitStop() {
defer stopapp.GetWaitGroup_Main().Done()
select {
case <-contextmain.GetContext().Done():
@@ -216,7 +217,6 @@ func WaitStop() {
//
CloseConnection()
stopapp.GetWaitGroup_Main().Done()
}
// StartDB - делает соединение с БД, отключение и др.