MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / wait_for_tokio_postgres

Function wait_for_tokio_postgres

tests/client_compat.rs:1070–1075  ·  view source on GitHub ↗
(
    connection_task: tokio::task::JoinHandle<Result<(), tokio_postgres::Error>>,
)

Source from the content-addressed store, hash-verified

1068}
1069
1070async fn wait_for_tokio_postgres(
1071 connection_task: tokio::task::JoinHandle<Result<(), tokio_postgres::Error>>,
1072) -> Result<()> {
1073 timeout(Duration::from_secs(5), connection_task).await???;
1074 Ok(())
1075}
1076
1077fn assert_sqlx_code(err: &sqlx::Error, expected: &str) {
1078 let code = err

Calls

no outgoing calls

Tested by

no test coverage detected