Skip to content

Commit

Permalink
fix(console): increase default event buffer capacity a bit (#235)
Browse files Browse the repository at this point in the history
It seems like a number of people using the console with real life
applications are running into issues related to the console's event
buffer being at capacity (e.g. #230, #234, etc). This commit bumps up
the default capacity a bit as a quick fix.

In the future, I think we should probably do things to avoid reaching
the event buffer capacity as often --- I think we can change the
aggregator/layer design a bit to avoid creating as many events. But, for
now, this should hopefully give people a better default configuration.
  • Loading branch information
hawkw authored Dec 21, 2021
1 parent fe82e17 commit 0cf0aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console-subscriber/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl ConsoleLayer {
/// events being dropped more frequently.
///
/// See also [`Builder::event_buffer_capacity`].
pub const DEFAULT_EVENT_BUFFER_CAPACITY: usize = 1024 * 10;
pub const DEFAULT_EVENT_BUFFER_CAPACITY: usize = 1024 * 100;
/// Default maximum capacity for th echannel of events sent from a
/// [`Server`] to each subscribed client.
///
Expand Down

0 comments on commit 0cf0aee

Please sign in to comment.