optimise some future sizes

This commit is contained in:
Conrad Ludgate
2025-07-23 08:56:26 +01:00
parent 14daaec98e
commit e965bd96bb
2 changed files with 32 additions and 41 deletions

View File

@@ -238,6 +238,7 @@ impl Client {
rx
}
/// Wait until this connection has no more active queries.
pub async fn wait_until_ready(&mut self) -> Result<ReadyForQueryStatus, Error> {
self.inner_mut().responses.wait_until_ready().await
}
@@ -329,11 +330,6 @@ impl Client {
Ok(())
}
/// Commit the transaction.
pub async fn commit(&mut self) -> Result<ReadyForQueryStatus, Error> {
self.batch_execute("COMMIT").await
}
/// Constructs a cancellation token that can later be used to request cancellation of a query running on the
/// connection associated with this client.
pub fn cancel_token(&self) -> CancelToken {