Skip to content

Commit

Permalink
feat(migrate-from-gcs): debug log bundle push
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Oct 16, 2023
1 parent 19b4aae commit fc5b2de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/migrate-from-gcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ async fn main() -> anyhow::Result<()> {
if slot_bundles.len() > 4 {
let oldest_slot = slot_bundles.keys().min().unwrap().clone();

Check failure on line 246 in src/bin/migrate-from-gcs.rs

View workflow job for this annotation

GitHub Actions / Lints

using `clone` on type `i32` which implements the `Copy` trait
let oldest_slot_payloads = slot_bundles.remove(&oldest_slot).unwrap();
debug!(slot = %oldest_slot, payloads_count = oldest_slot_payloads.len(), "flushing slot bundle");
slot_bundle_tx.send(oldest_slot_payloads).await.unwrap();
}
}
Expand All @@ -258,6 +259,8 @@ async fn main() -> anyhow::Result<()> {
let payloads_count = payloads.len();
let slot = &payloads.first().unwrap().slot;

debug!(slot = %slot, payloads_count, "processing slot bundle");

let slot_date_time = slot.date_time();
let year = slot_date_time.year();
let month = slot_date_time.month();
Expand Down

0 comments on commit fc5b2de

Please sign in to comment.