Retry client should return AlreadySubscribed error

Users may leverage the Error to avoid remembering client-side the subscription
status. eg. Always subscribing and calling script_pop in case AlreadySubscribed
is returned.
This commit is contained in:
Riccardo Casatta 2023-05-12 10:58:51 +02:00
parent abdbd020e1
commit 3a61037733
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(_)) => {
Err(Error::Protocol(_) | Error::AlreadySubscribed(_)) => {
return res;
},
Err(e) => {