Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented poll_flush for Box<S:Socket> #2742

Merged
merged 1 commit into from Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions sqlx-core/src/net/socket/mod.rs
Expand Up @@ -173,6 +173,10 @@
(**self).poll_write_ready(cx)
}

fn poll_flush(&mut self, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
(**self).poll_flush(cx)
}

fn poll_shutdown(&mut self, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
(**self).poll_shutdown(cx)
}
Expand Down Expand Up @@ -222,8 +226,8 @@
///
/// Returns an error if Unix Domain Sockets are not supported on this platform.
pub async fn connect_uds<P: AsRef<Path>, Ws: WithSocket>(
path: P,

Check warning on line 229 in sqlx-core/src/net/socket/mod.rs

View workflow job for this annotation

GitHub Actions / CLI Binaries (windows-latest)

unused variable: `path`
with_socket: Ws,

Check warning on line 230 in sqlx-core/src/net/socket/mod.rs

View workflow job for this annotation

GitHub Actions / CLI Binaries (windows-latest)

unused variable: `with_socket`
) -> crate::Result<Ws::Output> {
#[cfg(not(unix))]
{
Expand Down Expand Up @@ -254,7 +258,7 @@
}

#[cfg(not(feature = "_rt-async-std"))]
{

Check warning on line 261 in sqlx-core/src/net/socket/mod.rs

View workflow job for this annotation

GitHub Actions / CLI Binaries (windows-latest)

unreachable expression
crate::rt::missing_rt((path, with_socket))
}
}