mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-26 23:10:42 +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)
|
ctx, cancelFunc := context.WithTimeout(ctxMain, timeOutSeconds*time.Second)
|
||||||
defer cancelFunc()
|
defer cancelFunc()
|
||||||
|
|
||||||
_, err = GetConnection().Exec(ctx, ";")
|
mutex_Connect.Lock()
|
||||||
|
defer mutex_Connect.Unlock()
|
||||||
|
|
||||||
|
_, err = Conn.Exec(ctx, ";")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user