diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-10-08 21:05:37 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-10-08 21:05:37 -0400 |
| commit | 52274ba67d3b1cfef2dd6a5c08e67e68f1a6fc13 (patch) | |
| tree | 9903969d8a56601b04ccef9be886ab4b88ec3e0d /src/vapid | |
| parent | 10ccf6afafa2b2c3beab991505fc780e7f8d8357 (diff) | |
Stop passing an unused timestamp around when rotating VAPID keys.
Diffstat (limited to 'src/vapid')
| -rw-r--r-- | src/vapid/app.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vapid/app.rs b/src/vapid/app.rs index ddb1f4d..5814ba0 100644 --- a/src/vapid/app.rs +++ b/src/vapid/app.rs @@ -1,4 +1,4 @@ -use chrono::{TimeDelta, Utc}; +use chrono::TimeDelta; use sqlx::SqlitePool; use super::{History, repo, repo::Provider as _}; @@ -18,7 +18,7 @@ impl<'a> Vapid<'a> { Self { db, events } } - pub async fn rotate_key(&self, rotate_at: &DateTime) -> Result<(), sqlx::Error> { + pub async fn rotate_key(&self) -> Result<(), sqlx::Error> { let mut tx = self.db.begin().await?; // This is called from a separate CLI utility (see `cli.rs`), and we _can't_ deliver events // to active clients from another process, so don't do anything that would require us to |
