Skip to content

Commit 27eb4d0

Browse files
committed
Merge #107: Retry client should return AlreadySubscribed error
3a61037 Retry client should return AlreadySubscribed error (Riccardo Casatta) Pull request description: 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. Backport for version 0.14.0 ACKs for top commit: afilini: ACK 3a61037 Tree-SHA512: d6542227ca03b9f3755cec05115f86de54789cfc49fc87b603b653e0458f6b03ae9fea57fa110221395a4e33cf62a5b2bd7639c4269ae5291e4c92c99ef41eba
2 parents d8ee94c + 3a61037 commit 27eb4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ macro_rules! impl_inner_call {
4949
drop(read_client);
5050
match res {
5151
Ok(val) => return Ok(val),
52-
Err(Error::Protocol(_)) => {
52+
Err(Error::Protocol(_) | Error::AlreadySubscribed(_)) => {
5353
return res;
5454
},
5555
Err(e) => {

0 commit comments

Comments
 (0)