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

@@ -169,6 +169,7 @@ func CloseConnection() {
// WaitStop - ожидает отмену глобального контекста
func WaitStop() {
defer stopapp.GetWaitGroup_Main().Done()
select {
case <-contextmain.GetContext().Done():
@@ -181,7 +182,6 @@ func WaitStop() {
//
CloseConnection()
stopapp.GetWaitGroup_Main().Done()
}
// FillSettings загружает переменные окружения в структуру из файла или из переменных окружения