Skip to content

Commit

Permalink
1024
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeguglielmo committed Feb 8, 2024
1 parent 1f1b659 commit d6f5247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dht-cache/src/domocache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl DomoCache {

let peer_id = swarm.local_peer_id().to_string();

let (client_tx_channel, client_rx_channel) = mpsc::channel::<DomoEvent>(128);
let (client_tx_channel, client_rx_channel) = mpsc::channel::<DomoEvent>(1024);

let send_cache_state_timer: tokio::time::Instant =
tokio::time::Instant::now() + Duration::from_secs(u64::from(SEND_CACHE_HASH_PERIOD));
Expand Down
6 changes: 3 additions & 3 deletions src/webapimanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl WebApiManager {
_ = socket::setsockopt(listener.as_raw_fd(), ReuseAddr, &true);
}

let (tx_rest, rx_rest) = mpsc::channel(128);
let (tx_rest, rx_rest) = mpsc::channel(1024);

let tx_get_all = tx_rest.clone();

Expand All @@ -77,12 +77,12 @@ impl WebApiManager {
let tx_pub_message = tx_rest;

let (async_tx_websocket, mut _async_rx_websocket) =
broadcast::channel::<AsyncWebSocketDomoMessage>(128);
broadcast::channel::<AsyncWebSocketDomoMessage>(1024);

let async_tx_websocket_copy = async_tx_websocket.clone();

let (sync_tx_websocket, sync_rx_websocket) =
broadcast::channel::<SyncWebSocketDomoMessage>(128);
broadcast::channel::<SyncWebSocketDomoMessage>(1024);

let sync_tx_websocket_copy = sync_tx_websocket.clone();

Expand Down

0 comments on commit d6f5247

Please sign in to comment.