mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-25 23:02:22 +02:00
сделал Ping_err()
This commit is contained in:
@@ -521,7 +521,8 @@ func RawMultipleSQL(tx pgx.Tx, TextSQL string) (pgx.Rows, error) {
|
||||
func Ping_err(ctxMain context.Context) error {
|
||||
var err error
|
||||
|
||||
ctx, cancelFunc := context.WithTimeout(ctxMain, timeOutSeconds*time.Second)
|
||||
//ctx, cancelFunc := context.WithTimeout(ctxMain, timeOutSeconds*time.Second)
|
||||
ctx, cancelFunc := context.WithTimeout(ctxMain, 1*time.Second)
|
||||
defer cancelFunc()
|
||||
|
||||
mutex_Connect.Lock()
|
||||
|
||||
Reference in New Issue
Block a user