Skip to content

Commit b93ca84

Browse files
REST plugin uses unbounded flume channels for queries (#1213)
1 parent 869ace6 commit b93ca84

File tree

1 file changed

+6
-1
lines changed
  • plugins/zenoh-plugin-rest/src

1 file changed

+6
-1
lines changed

plugins/zenoh-plugin-rest/src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,12 @@ async fn query(mut req: Request<(Arc<Session>, String)>) -> tide::Result<Respons
380380
QueryConsolidation::from(zenoh::query::ConsolidationMode::Latest)
381381
};
382382
let raw = selector.decode().any(|(k, _)| k.as_ref() == RAW_KEY);
383-
let mut query = req.state().0.get(&selector).consolidation(consolidation);
383+
let mut query = req
384+
.state()
385+
.0
386+
.get(&selector)
387+
.with(flume::unbounded())
388+
.consolidation(consolidation);
384389
if !body.is_empty() {
385390
let encoding: Encoding = req
386391
.content_type()

0 commit comments

Comments
 (0)