1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-24 22:53:52 +02:00

сделал Start_ctx()

This commit is contained in:
Nikitin Aleksandr
2024-09-30 12:05:31 +03:00
parent 5de43d6e9b
commit 8c78a23405
21 changed files with 185 additions and 22 deletions

View File

@@ -299,9 +299,17 @@ func StartDB() {
func Start_ctx(ctx *context.Context, WaitGroup *sync.WaitGroup) error {
var err error
//запомним к себе контекст и WaitGroup
//запомним к себе контекст
contextmain.Ctx = ctx
if ctx == nil {
contextmain.GetContext()
}
//запомним к себе WaitGroup
stopapp.SetWaitGroup_Main(WaitGroup)
if WaitGroup == nil {
stopapp.StartWaitStop()
}
//
err = Connect_err()