Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
n00m4d committed Sep 16, 2024
1 parent ec088cd commit c7fdd5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
15 changes: 9 additions & 6 deletions nft_ingester/src/account_updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ pub fn account_worker<T: Messenger>(
tokio::spawn(async move {
let source = T::new(config).await;
if let Ok(mut msg) = source {
let manager = Arc::new(ProgramTransformer::new(
pool,
create_download_metadata_notifier(bg_task_sender),
false,
false,
));
let manager = Arc::new(
ProgramTransformer::new(
pool,
create_download_metadata_notifier(bg_task_sender),
false,
false,
)
.await,
);
loop {
let e = msg.recv(stream_key, consumption_type.clone()).await;
let mut tasks = JoinSet::new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ where
if let Some(batched_trees) = batched_trees {
let mut b_trees = batched_trees.write().await;
b_trees.insert(tree_id.clone());
drop(b_trees);
}

let query = digital_asset_types::dao::batch_mint_to_verify::Entity::insert(
Expand Down
1 change: 0 additions & 1 deletion program_transformers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ impl ProgramTransformer {
let batched_trees = batched_trees.read().await;

if let Some(_tree) = batched_trees.get(&change_log.id) {
drop(batched_trees);
continue;
}
}
Expand Down

0 comments on commit c7fdd5b

Please sign in to comment.