Skip to content

Commit 1c843c8

Browse files
authored
Merge pull request sfackler#530 from benesch/rm-debugging
Remove debugging printlns from copy out protocol
2 parents a8fa2a4 + 6d18d79 commit 1c843c8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tokio-postgres/src/copy_out.rs

-3
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ pub async fn copy_out(client: &InnerClient, statement: Statement) -> Result<Copy
2525
async fn start(client: &InnerClient, buf: Bytes) -> Result<Responses, Error> {
2626
let mut responses = client.send(RequestMessages::Single(FrontendMessage::Raw(buf)))?;
2727

28-
println!("a");
2928
match responses.next().await? {
3029
Message::BindComplete => {}
3130
_ => return Err(Error::unexpected_message()),
3231
}
3332

34-
println!("b");
3533
match responses.next().await? {
3634
Message::CopyOutResponse(_) => {}
3735
_ => return Err(Error::unexpected_message()),
@@ -55,7 +53,6 @@ impl Stream for CopyOutStream {
5553
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
5654
let this = self.project();
5755

58-
println!("c");
5956
match ready!(this.responses.poll_next(cx)?) {
6057
Message::CopyData(body) => Poll::Ready(Some(Ok(body.into_bytes()))),
6158
Message::CopyDone => Poll::Ready(None),

0 commit comments

Comments
 (0)