Skip to content

Commit

Permalink
bg-task: Add the limit correctly (metaplex-foundation#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Acharya authored Jun 7, 2023
1 parent a0abd78 commit 1aa6106
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tools/bgtask_creator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,10 @@ pub async fn main() {
.await;
match res {
Ok(_) => {
info!("Task Created: {:?} {:?}", task_hash, task.asset_data_id);
debug!(
"Task Created: {:?} {:?}, count: {:?}",
task_hash, task.asset_data_id, count
);
}
Err(e) => {
error!("Task failed: {}", e);
Expand All @@ -509,9 +512,9 @@ pub async fn main() {
tasks.push(new_task);
}
count += 1;
if *limit > 0 && count >= *limit {
break;
}
}
if *limit > 0 && count >= *limit {
break;
}
}

Expand Down

0 comments on commit 1aa6106

Please sign in to comment.