We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64aaff commit cfc7bfeCopy full SHA for cfc7bfe
src/raw_client.rs
@@ -683,10 +683,7 @@ impl<T: Read + Write> ElectrumApi for RawClient<T> {
683
684
for req_id in missing_responses.iter() {
685
match self.recv(&receiver, *req_id) {
686
- Ok(mut resp) => answers.insert(
687
- resp["id"].as_u64().unwrap_or_default(),
688
- resp["result"].take(),
689
- ),
+ Ok(mut resp) => answers.insert(req_id, resp["result"].take()),
690
Err(e) => {
691
// In case of error our sender could still be left in the map, depending on where
692
// the error happened. Just in case, try to remove it here
0 commit comments