From b32c7682f0a84619a6d1845516a6a1829fa0c59b Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 27 Feb 2026 16:41:37 -0500 Subject: Move failed push handling inside of the web push publisher. 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. --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli.rs') 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 { -- cgit v1.2.3