mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(postgres): avoid unnecessary flush in PgCopyIn::read_from
This commit is contained in:
parent
929af41745
commit
91c6e6668b
@ -221,10 +221,6 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
|
||||
}
|
||||
|
||||
let conn: &mut PgConnection = self.conn.as_deref_mut().expect("copy_from: conn taken");
|
||||
|
||||
// flush any existing messages in the buffer and clear it
|
||||
conn.stream.flush().await?;
|
||||
|
||||
loop {
|
||||
let buf = conn.stream.write_buffer_mut();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user