forked from mtusi2026/mtusi2026lab2
fix(app) backported some things agent broke in lab2 and bugfixed other autocheck issues manually
This commit is contained in:
@@ -6,6 +6,7 @@ package store
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"gitflic.ru/project/bulla-max/mtusi2026lab2/internal/common"
|
||||
@@ -346,7 +347,8 @@ func dbError(err error) error {
|
||||
}
|
||||
}
|
||||
|
||||
if errors.Is(err, context.DeadlineExceeded) ||
|
||||
var netErr net.Error
|
||||
if errors.As(err, &netErr) || errors.Is(err, context.DeadlineExceeded) ||
|
||||
errors.Is(err, context.Canceled) ||
|
||||
pgconn.SafeToRetry(err) ||
|
||||
errors.Is(err, pgx.ErrTxClosed) {
|
||||
|
||||
Reference in New Issue
Block a user