Skip to content

Commit

Permalink
label oneshot channel ends, for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
zancas committed Dec 2, 2024
1 parent b86174d commit 8b05e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zingo-sync/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ pub async fn get_utxo_metadata(
panic!("addresses must be non-empty!");
}

let (sender, receiver) = oneshot::channel();
let (reply_sender, reply_receiver) = oneshot::channel();
fetch_request_sender
.send(FetchRequest::UtxoMetadata(
sender,
reply_sender,
(transparent_addresses, start_height),
))
.unwrap();
let transparent_output_metadata = receiver.await.unwrap();
let transparent_output_metadata = reply_receiver.await.unwrap();

Ok(transparent_output_metadata)
}
Expand Down

0 comments on commit 8b05e87

Please sign in to comment.