File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2404,7 +2404,7 @@ impl PendingRequest {
2404
2404
self . project ( ) . headers
2405
2405
}
2406
2406
2407
- #[ cfg( feature = "http2" ) ]
2407
+ #[ cfg( any ( feature = "http2" , feature = "http3" ) ) ]
2408
2408
fn retry_error ( mut self : Pin < & mut Self > , err : & ( dyn std:: error:: Error + ' static ) ) -> bool {
2409
2409
use log:: trace;
2410
2410
@@ -2464,7 +2464,7 @@ impl PendingRequest {
2464
2464
}
2465
2465
}
2466
2466
2467
- #[ cfg( feature = "http2" ) ]
2467
+ #[ cfg( any ( feature = "http2" , feature = "http3" ) ) ]
2468
2468
fn is_retryable_error ( err : & ( dyn std:: error:: Error + ' static ) ) -> bool {
2469
2469
// pop the legacy::Error
2470
2470
let err = if let Some ( err) = err. source ( ) {
@@ -2482,6 +2482,7 @@ fn is_retryable_error(err: &(dyn std::error::Error + 'static)) -> bool {
2482
2482
}
2483
2483
}
2484
2484
2485
+ #[ cfg( feature = "http2" ) ]
2485
2486
if let Some ( cause) = err. source ( ) {
2486
2487
if let Some ( err) = cause. downcast_ref :: < h2:: Error > ( ) {
2487
2488
// They sent us a graceful shutdown, try with a new connection!
You can’t perform that action at this time.
0 commit comments