File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ lazy_static! {
48
48
49
49
/// Middleware to add GitHub headers to the request. If a GitHub token is set, then it is added as a
50
50
/// bearer token. This is used to authenticate with the GitHub API to increase the rate limit.
51
- #[ derive( Debug , Default ) ]
51
+ #[ derive( Debug ) ]
52
52
struct GithubMiddleware ;
53
53
54
54
impl GithubMiddleware {
@@ -92,7 +92,7 @@ fn reqwest_client() -> ClientWithMiddleware {
92
92
let retry_policy = ExponentialBackoff :: builder ( ) . build_with_max_retries ( 3 ) ;
93
93
ClientBuilder :: new ( reqwest:: Client :: new ( ) )
94
94
. with ( TracingMiddleware :: default ( ) )
95
- . with ( GithubMiddleware :: default ( ) )
95
+ . with ( GithubMiddleware )
96
96
. with ( RetryTransientMiddleware :: new_with_policy ( retry_policy) )
97
97
. build ( )
98
98
}
You can’t perform that action at this time.
0 commit comments