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-23 12:41:09 +03:00
parent e6fddc2907
commit 6eaf93819e

View File

@@ -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()