Skip to content

Commit 2040013

Browse files
committed
modelerrors: remove unused MaxRetryAfterWait re-export
No callers reference modelerrors.MaxRetryAfterWait — all usage goes through backoff.MaxRetryAfterWait directly. Remove the constant and the now-unused backoff import. Assisted-By: docker-agent
1 parent dcfb3c7 commit 2040013

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pkg/modelerrors/modelerrors.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ import (
1515
"strconv"
1616
"strings"
1717
"time"
18-
19-
"github.com/docker/docker-agent/pkg/backoff"
20-
)
21-
22-
// Backoff and retry-after configuration constants.
23-
const (
24-
// MaxRetryAfterWait caps how long we'll honor a Retry-After header to prevent
25-
// a misbehaving server from blocking the agent for an unreasonable amount of time.
26-
MaxRetryAfterWait = backoff.MaxRetryAfterWait
2718
)
2819

2920
// StatusError wraps an HTTP API error with structured metadata for retry decisions.

0 commit comments

Comments
 (0)