mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 22:44:17 +00:00
change UnexpectedEof
to ConnectionAborted
This commit is contained in:
parent
43f1164823
commit
589d06ec66
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ impl MySqlConnection {
|
|||
pub(crate) async fn receive(&mut self) -> crate::Result<&mut Self> {
|
||||
self.try_receive()
|
||||
.await?
|
||||
.ok_or(io::ErrorKind::UnexpectedEof)?;
|
||||
.ok_or(io::ErrorKind::ConnectionAborted)?;
|
||||
|
||||
Ok(self)
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ impl super::PgConnection {
|
|||
}
|
||||
|
||||
// Connection was (unexpectedly) closed
|
||||
Err(io::Error::from(io::ErrorKind::UnexpectedEof).into())
|
||||
Err(io::Error::from(io::ErrorKind::ConnectionAborted).into())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue