From 889eb98e288e8587e66182d6f1919179d2334d43 Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Tue, 17 Oct 2023 12:17:18 +0200 Subject: [PATCH] fix(migrate-from-gcs): remove double ref --- src/bin/migrate-from-gcs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/migrate-from-gcs.rs b/src/bin/migrate-from-gcs.rs index 79b5740..712336a 100644 --- a/src/bin/migrate-from-gcs.rs +++ b/src/bin/migrate-from-gcs.rs @@ -248,7 +248,7 @@ async fn main() -> anyhow::Result<()> { let keys = slot_bundles.keys().cloned().collect::>(); trace!("incomplete slot bundles hit limit: {:?}", keys); let oldest_slot = keys.iter().min().unwrap(); - let oldest_slot_payloads = slot_bundles.remove(&oldest_slot).unwrap(); + 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(); }