Skip to content

Commit

Permalink
refactor(node): reduce the max number of events that can be queued in…
Browse files Browse the repository at this point in the history
… the NodeEventsChannel
  • Loading branch information
bochaco authored and joshuef committed Nov 1, 2023
1 parent 9c6cc48 commit 4ca83b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sn_node/src/event.rs
Expand Up @@ -13,7 +13,8 @@ use serde::{Deserialize, Serialize};
use sn_protocol::storage::{ChunkAddress, RegisterAddress};
use sn_transfers::{Transfer, UniquePubkey};
use tokio::sync::broadcast;
const NODE_EVENT_CHANNEL_SIZE: usize = 10_000;

const NODE_EVENT_CHANNEL_SIZE: usize = 500;

/// Channel where users of the public API can listen to events broadcasted by the node.
#[derive(Clone)]
Expand Down

0 comments on commit 4ca83b1

Please sign in to comment.