Skip to content

Commit

Permalink
Specify runtime for queries timeout spawn (eclipse-zenoh#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc authored Mar 25, 2024
1 parent d29636f commit e04c861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenoh/src/net/routing/dispatcher/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ pub fn route_query(
face: Arc::downgrade(outface),
qid: *qid,
};
tokio::task::spawn(async move {
zenoh_runtime::ZRuntime::Net.spawn(async move {
tokio::time::sleep(timeout).await;
cleanup.run().await
});
Expand Down Expand Up @@ -636,7 +636,7 @@ pub fn route_query(
face: Arc::downgrade(outface),
qid: *qid,
};
tokio::task::spawn(async move {
zenoh_runtime::ZRuntime::Net.spawn(async move {
tokio::time::sleep(timeout).await;
cleanup.run().await
});
Expand Down

0 comments on commit e04c861

Please sign in to comment.