Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename send_request to detached_request.
  • Loading branch information
eskimor committed Feb 2, 2021
commit fe93ea7e010e6059239ecbb5ead50b3ddb7e2ac9
4 changes: 2 additions & 2 deletions client/network/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
) -> Result<Vec<u8>, RequestFailure> {
let (tx, rx) = oneshot::channel();

self.send_request(target, protocol, request, tx, connect);
self.detached_request(target, protocol, request, tx, connect);

match rx.await {
Ok(v) => v,
Expand All @@ -852,7 +852,7 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
/// Keep in mind that the connected receiver might receive a `Canceled` event in case of a
/// closing connection, this is expected behaviour. In `request` you would get a
/// `RequestFailure::Network(OutboundFailure::ConnectionClosed` in that case.
pub fn send_request(
pub fn detached_request(
&self,
target: PeerId,
protocol: impl Into<Cow<'static, str>>,
Expand Down