Skip to content

Commit

Permalink
buffer 16 messages in copy-both involved channels
Browse files Browse the repository at this point in the history
  • Loading branch information
petrosagg committed Sep 2, 2024
1 parent 37f1114 commit 23d1615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tokio-postgres/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ impl InnerClient {
}

pub fn start_copy_both(&self) -> Result<CopyBothHandles, Error> {
let (sender, receiver) = mpsc::channel(1);
let (stream_sender, stream_receiver) = mpsc::channel(0);
let (sink_sender, sink_receiver) = mpsc::channel(0);
let (sender, receiver) = mpsc::channel(16);
let (stream_sender, stream_receiver) = mpsc::channel(16);
let (sink_sender, sink_receiver) = mpsc::channel(16);

let responses = Responses {
receiver,
Expand Down

0 comments on commit 23d1615

Please sign in to comment.