mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-25 23:02:22 +02:00
сделал //mutex_Connect.Lock() //убрал т.к. зависает всё
This commit is contained in:
@@ -525,8 +525,8 @@ func Ping_err(ctxMain context.Context) error {
|
|||||||
ctx, cancelFunc := context.WithTimeout(ctxMain, 1*time.Second)
|
ctx, cancelFunc := context.WithTimeout(ctxMain, 1*time.Second)
|
||||||
defer cancelFunc()
|
defer cancelFunc()
|
||||||
|
|
||||||
mutex_Connect.Lock()
|
//mutex_Connect.Lock() //убрал т.к. зависает всё
|
||||||
defer mutex_Connect.Unlock()
|
//defer mutex_Connect.Unlock()
|
||||||
|
|
||||||
_, err = Conn.Exec(ctx, ";")
|
_, err = Conn.Exec(ctx, ";")
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user