File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,6 @@ func WithHTTPClient(httpClient *http.Client) ClientOptionFunc {
83
83
}
84
84
}
85
85
86
- // WithoutRetries disables the default retry logic.
87
- func WithoutRetries () ClientOptionFunc {
88
- return func (c * Client ) error {
89
- c .disableRetries = true
90
- return nil
91
- }
92
- }
93
-
94
86
// WithRequestLogHook can be used to configure a custom request log hook.
95
87
func WithRequestLogHook (hook retryablehttp.RequestLogHook ) ClientOptionFunc {
96
88
return func (c * Client ) error {
@@ -106,3 +98,11 @@ func WithResponseLogHook(hook retryablehttp.ResponseLogHook) ClientOptionFunc {
106
98
return nil
107
99
}
108
100
}
101
+
102
+ // WithoutRetries disables the default retry logic.
103
+ func WithoutRetries () ClientOptionFunc {
104
+ return func (c * Client ) error {
105
+ c .disableRetries = true
106
+ return nil
107
+ }
108
+ }
You can’t perform that action at this time.
0 commit comments