Skip to content

Commit

Permalink
REST plugin uses unbounded flume channels for queries (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart authored Jul 3, 2024
1 parent 869ace6 commit b93ca84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/zenoh-plugin-rest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,12 @@ async fn query(mut req: Request<(Arc<Session>, String)>) -> tide::Result<Respons
QueryConsolidation::from(zenoh::query::ConsolidationMode::Latest)
};
let raw = selector.decode().any(|(k, _)| k.as_ref() == RAW_KEY);
let mut query = req.state().0.get(&selector).consolidation(consolidation);
let mut query = req
.state()
.0
.get(&selector)
.with(flume::unbounded())
.consolidation(consolidation);
if !body.is_empty() {
let encoding: Encoding = req
.content_type()
Expand Down

0 comments on commit b93ca84

Please sign in to comment.