use super::super::inner::remove_countersigning_session::{
self, RemoveCountersigningSessionOutcome,
};
use crate::handles::DbWrite;
use crate::kind::Dht;
use holo_hash::{ActionHash, EntryHash};
impl DbWrite<Dht> {
pub async fn remove_countersigning_session(
&self,
action_hash: &ActionHash,
entry_hash: &EntryHash,
) -> sqlx::Result<RemoveCountersigningSessionOutcome> {
let mut tx = self.begin().await?;
let outcome = remove_countersigning_session::remove_countersigning_session(
tx.conn_mut(),
action_hash,
entry_hash,
)
.await?;
tx.commit().await?;
Ok(outcome)
}
}