Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rfd-github/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 1 addition & 5 deletions rfd-processor/src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -37,10 +36,7 @@ pub async fn scanner(ctx: Arc<Context>) -> 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
Expand Down
Loading