Compare commits

...

2 Commits

Author SHA1 Message Date
Alekos Filini
84f11fb80e
Bump to v0.14.1
Some checks failed
CI / Test (push) Has been cancelled
2023-05-14 12:59:00 +02:00
Riccardo Casatta
16e1a03414
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.
2023-05-14 12:58:39 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "electrum-client"
version = "0.14.0"
version = "0.14.1"
authors = ["Alekos Filini <alekos.filini@gmail.com>"]
license = "MIT"
homepage = "https://github.com/MagicalBitcoin/rust-electrum-client"

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) => {