We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a17ac commit 048e91aCopy full SHA for 048e91a
1 file changed
tokio-postgres/src/cancel_query_raw.rs
@@ -23,9 +23,7 @@ where
23
frontend::cancel_request(process_id, secret_key, &mut buf);
24
25
stream.write_all(&buf).await.map_err(Error::io)?;
26
- future::poll_fn(|cx| Pin::new(&mut stream).poll_flush(cx))
27
- .await
28
- .map_err(Error::io)?;
+ stream.flush().await.map_err(Error::io)?;
29
future::poll_fn(|cx| Pin::new(&mut stream).poll_shutdown(cx))
30
.await
31
.map_err(Error::io)?;
0 commit comments