From 37d9713e108524e73020cc48478435edf0738e36 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Fri, 10 Jul 2026 11:14:25 -0400 Subject: [PATCH 1/2] Fix for V-api changing the result thrown (67498/98504 lines; 28MB/76MB) --- rfd-processor/src/scanner.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rfd-processor/src/scanner.rs b/rfd-processor/src/scanner.rs index be22598b..f56496e2 100644 --- a/rfd-processor/src/scanner.rs +++ b/rfd-processor/src/scanner.rs @@ -2,7 +2,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. -use diesel::result::{DatabaseErrorKind, Error as DieselError}; use rfd_github::{GitHubError, GitHubRfdUpdate}; use rfd_model::{storage::JobStore, NewJob}; use std::sync::Arc; @@ -37,10 +36,7 @@ pub async fn scanner(ctx: Arc) -> Result<(), ScannerError> { Ok(job) => tracing::trace!(?job.id, "Added job to the queue"), Err(err) => { match err { - StoreError::Db(DieselError::DatabaseError( - DatabaseErrorKind::UniqueViolation, - _, - )) => { + StoreError::Conflict => { // Nothing to do here, we expect uniqueness conflicts. It is expected // that the scanner picks ups redundant jobs for RFDs that have not // changed since the last scan From a5a8e5c1118310acb280fa86c9095c8192464360 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Fri, 10 Jul 2026 11:19:20 -0400 Subject: [PATCH 2/2] Log count of rfd_files not the structure (96/day; 20MB/76MB) --- rfd-github/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfd-github/src/lib.rs b/rfd-github/src/lib.rs index 85563330..b5aaa3f1 100644 --- a/rfd-github/src/lib.rs +++ b/rfd-github/src/lib.rs @@ -269,7 +269,7 @@ impl GitHubRfdRepo { .await? .body; - tracing::info!(?rfd_files, "Fetched repo files"); + tracing::info!(count = ?rfd_files.len(), "Fetched repo files"); // Each RFD should exist at a path that looks like rfd/{number}/README.adoc for entry in rfd_files {