mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-25 23:02:22 +02:00
сделал Ping_err()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user