Ignore other unrecoverable errors in retry client

This commit is contained in:
Riccardo Casatta 2023-07-12 17:33:43 +02:00
parent dbec56a95b
commit 7c11f208c0
No known key found for this signature in database
GPG Key ID: FD986A969E450397

View File

@ -49,7 +49,7 @@ macro_rules! impl_inner_call {
drop(read_client);
match res {
Ok(val) => return Ok(val),
Err(Error::Protocol(_) | Error::AlreadySubscribed(_)) => {
Err(Error::Protocol(_) | Error::AlreadySubscribed(_) | Error::NotSubscribed(_) | Error::NotSubscribedToHeaders) => {
return res;
},
Err(e) => {