Skip to content

Commit

Permalink
Merge pull request #265 from holaplex/espi/debu-loging-count-caches
Browse files Browse the repository at this point in the history
fix: log statements
  • Loading branch information
kespinola authored Oct 19, 2023
2 parents c619084 + 46be527 commit 5f3f6c9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions api/src/dataloaders/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,17 @@ impl DataLoader<Uuid> 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);
Expand Down Expand Up @@ -229,7 +229,7 @@ impl DataLoader<Uuid> 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
);

Expand Down

0 comments on commit 5f3f6c9

Please sign in to comment.