Browse Source

Increase the number of tokio channels for the query engine from 8 to 1000. (#1095)

James Fletcher 2 năm trước cách đây
mục cha
commit
6e5fbcff63
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/desktop/src/query.rs

+ 1 - 1
packages/desktop/src/query.rs

@@ -22,7 +22,7 @@ pub(crate) struct QueryEngine {
 
 impl Default for QueryEngine {
     fn default() -> Self {
-        let (sender, _) = tokio::sync::broadcast::channel(8);
+        let (sender, _) = tokio::sync::broadcast::channel(1000);
         Self {
             sender: Rc::new(sender),
             active_requests: SharedSlab::default(),