Explorar o código

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

James Fletcher %!s(int64=2) %!d(string=hai) anos
pai
achega
6e5fbcff63
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(),