summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2026-02-27 16:41:37 -0500
committerOwen Jacobson <owen@grimoire.ca>2026-02-27 18:15:33 -0500
commitb32c7682f0a84619a6d1845516a6a1829fa0c59b (patch)
treefad8bf5bd8eb628253611f0b3d1a91febe3b9266 /src/cli.rs
parent6ab0f42250294e38e8da6a48260ff83544a6be9a (diff)
Move failed push handling inside of the web push publisher.HEADmain
I want push publication to be "fire and forget," and ultimately also for it to be asynchronous and retriable. To facilitate that, the caller needs to be insulated from the final outcome of publishing a push message. I've opted to preserve the `Failure` possibility, but any delivery issues are now handled inside the publisher.
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 971d1f9..e0d8b75 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -101,7 +101,7 @@ impl Args {
self.umask.set();
let pool = self.pool().await.fail("Failed to create database pool")?;
- let publisher = Publisher::new().fail("Failed to create web push publisher")?;
+ let publisher = Publisher::new(pool.clone()).fail("Failed to create web push publisher")?;
let app = App::from(pool, publisher);
match self.command {