MCPcopy Create free account
hub / github.com/TankHQ/tank / commit

Method commit

tank-postgres/src/transaction.rs:66–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64
65impl<'c> Transaction<'c> for PostgresTransaction<'c> {
66 fn commit(self) -> impl Future<Output = Result<()>> + Send {
67 self.0.commit().map_err(|e| {
68 let error = Error::new(e);
69 log::error!("{error:#}");
70 error
71 })
72 }
73
74 fn rollback(self) -> impl Future<Output = Result<()>> + Send {
75 self.0.rollback().map_err(|e| {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected