Skip to content

Commit

Permalink
fix: raise the buffer size for subscribe responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonas Koivunen committed Mar 25, 2020
1 parent 090a3ee commit ac08a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/src/v0/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ async fn inner_subscribe<T: IpfsTypes>(

// using broadcast channel should allow us have N concurrent subscribes and
// preformatted json should give us good enough performance. this channel can last over
// multiple subscriptions and unsubscriptions
let (tx, rx) = broadcast::channel::<Result<PreformattedJsonMessage, StreamError>>(4);
// multiple subscriptions and unsubscriptions.
let (tx, rx) = broadcast::channel::<Result<PreformattedJsonMessage, StreamError>>(16);

// this will be used to create more subscriptions
ve.insert(tx.clone());
Expand Down

0 comments on commit ac08a63

Please sign in to comment.