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

сделал Ping_err()

This commit is contained in:
Nikitin Aleksandr
2025-05-16 10:32:03 +03:00
parent 68bfc23cdc
commit 9c24aa0e43

View File

@@ -524,6 +524,9 @@ func Ping_err(ctxMain context.Context) error {
ctx, cancelFunc := context.WithTimeout(ctxMain, timeOutSeconds*time.Second)
defer cancelFunc()
_, err = GetConnection().Exec(ctx, ";")
mutex_Connect.Lock()
defer mutex_Connect.Unlock()
_, err = Conn.Exec(ctx, ";")
return err
}