mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-25 00:50:36 +00:00
optimise some future sizes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user