Skip to content

Commit

Permalink
fix(filewatcher): Increase package event buffer
Browse files Browse the repository at this point in the history
Bumps buffers size for package change events from 1024 to 4096.
With some build tools (e.g. cargo) the number of changes to the build
direcotry can be quite large resulting in processing delay.

It is also likely that during build operations the cpu resources are
constrained further contributing to delays in event processing,
thus increasing the buffer size seems appropriate
  • Loading branch information
krlvi committed Nov 7, 2024
1 parent 3d21e39 commit e3b2b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/daemon/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ impl proto::turbod_server::Turbod for TurboGrpcServiceInner {
.package_changes()
.await;

let (tx, rx) = mpsc::channel(1024);
let (tx, rx) = mpsc::channel(4096);

tx.send(Ok(proto::PackageChangeEvent {
event: Some(proto::package_change_event::Event::RediscoverPackages(
Expand Down

0 comments on commit e3b2b6a

Please sign in to comment.