fix: send an idempotent request once instead of retrying it five times

This commit is contained in:
aykhans committed 2026-09-29 23:22:51 +04:00
1 parent 17dfa16051
commit e0f6d4aeba
2 files changed
+4

No files matched your search

+2
View File
@@ -60,6 +60,7 @@ func NewHostClients(
WriteTimeout: timeout,
ReadTimeout: timeout,
MaxResponseBodySize: safeUint64ToInt(maxResponseBody),
MaxIdemponentCallAttempts: 1,
DisableHeaderNamesNormalizing: true,
DisablePathNormalizing: true,
NoDefaultUserAgentHeader: true,
@@ -83,6 +84,7 @@ func NewHostClients(
WriteTimeout: timeout,
ReadTimeout: timeout,
MaxResponseBodySize: safeUint64ToInt(maxResponseBody),
MaxIdemponentCallAttempts: 1,
DisableHeaderNamesNormalizing: true,
DisablePathNormalizing: true,
NoDefaultUserAgentHeader: true,
+2
View File
@@ -59,6 +59,8 @@ func newScriptHTTPClient(
DialTimeout: dialWithDeadline(dial),
MaxConnsPerHost: safeUintToInt(maxConns),
MaxResponseBodySize: safeUint64ToInt(maxResponseBody),
// Retries would send one script call several times and hide it from the results.
MaxIdemponentCallAttempts: 1,
TLSConfig: &tls.Config{
InsecureSkipVerify: insecure, //nolint:gosec
},