Skip to content

Commit

Permalink
Bump channel size
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Sep 24, 2024
1 parent ff968d0 commit bef326d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ impl Publisher {
flush_period_seconds: NonZeroUsize,
min_seconds_between_messages: NonZeroUsize,
) -> Result<Self, PublisherError> {
let (publication_sender, mut publication_receiver) = mpsc::channel::<Box<FollowChange>>(1);
let (publication_sender, mut publication_receiver) =
mpsc::channel::<Box<FollowChange>>(2000);

let mut buffer = NotificationFactory::new(min_seconds_between_messages);
tokio::spawn(async move {
Expand All @@ -68,7 +69,7 @@ impl Publisher {

if let Err(e) = client.publish_events(buffer.flush()).await {
match &e {
// We've seen this happen sporadically, we don't neet to kill the look in this situation
// We've seen this happen sporadically, we don't neet to kill the loop in this situation
PublisherError::PublishError => {
error!("{}", e);
}
Expand Down

0 comments on commit bef326d

Please sign in to comment.