mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-13 17:27:50 +00:00
Merge pull request #2932 from tsing/fix-copy-in
fix(postgres): avoid unnecessary flush in PgCopyIn::read_from
This commit is contained in:
commit
ea4703ea64
@ -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