Skip to content

Commit 974a7e5

Browse files
committed
fix method order
1 parent b1307ef commit 974a7e5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

client_options.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,6 @@ func WithHTTPClient(httpClient *http.Client) ClientOptionFunc {
8383
}
8484
}
8585

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-
9486
// WithRequestLogHook can be used to configure a custom request log hook.
9587
func WithRequestLogHook(hook retryablehttp.RequestLogHook) ClientOptionFunc {
9688
return func(c *Client) error {
@@ -106,3 +98,11 @@ func WithResponseLogHook(hook retryablehttp.ResponseLogHook) ClientOptionFunc {
10698
return nil
10799
}
108100
}
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+
}

0 commit comments

Comments
 (0)