From 46be5270e9f3c769b8739cc50b0546f0fbf660b1 Mon Sep 17 00:00:00 2001 From: Kyle Espinola Date: Thu, 19 Oct 2023 13:05:01 +0200 Subject: [PATCH] fix: log statements --- api/src/dataloaders/collection.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/src/dataloaders/collection.rs b/api/src/dataloaders/collection.rs index efb5081..66f9e38 100644 --- a/api/src/dataloaders/collection.rs +++ b/api/src/dataloaders/collection.rs @@ -190,17 +190,17 @@ impl DataLoader for SupplyLoader { if drop.drop_type == DropType::Open { info!("Open drop for collection: {}", collection.id); computed_supplies.push(collection.id); - continue; - } - let redis_key = format!("collection:{}:supply", collection.id); + } else { + let redis_key = format!("collection:{}:supply", collection.id); - redis_connection.set(&redis_key, collection.supply).await?; - info!( - "supply: {} for collection {}", - collection.supply, collection.id - ); + redis_connection.set(&redis_key, collection.supply).await?; + info!( + "supply: {:?} for collection {}", + collection.supply, collection.id + ); - results.insert(collection.id, collection.supply); + results.insert(collection.id, collection.supply); + } } else { info!("No drop for collection: {}", collection.id); computed_supplies.push(collection.id); @@ -229,7 +229,7 @@ impl DataLoader for SupplyLoader { redis_connection.set(&redis_key, count).await?; info!( - "Set Redis key for computed supply: {} count: {}", + "Set Redis key for computed supply: {} count: {:?}", key, count );