feat: with tx on all

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-10-03 23:08:12 +02:00
parent e774529b04
commit bc28451f8d
18 changed files with 256 additions and 28 deletions

View File

@@ -34,8 +34,8 @@ impl OutboxHandler {
}
async fn handle_messages(p: &Persistence, t: &Transport) -> anyhow::Result<Option<()>> {
match p.next().await {
Some(item) => match p.get(&item).await? {
match p.next().await? {
Some((item, _)) => match p.get(&item).await? {
Some((info, content)) => {
t.publish(&info, content).await?;
p.update_published(&item).await?;