Skip to content

Commit

Permalink
fix: remove progress bar (#1477)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Oct 20, 2023
1 parent 5b3a206 commit d40efa3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/tasks/migration/generate_referring_cells.rake
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ namespace :migration do
contract_hashes = Contract.where(role: "type_script").pluck(:code_hash)
binary_hashes = CkbUtils.hexes_to_bins(contract_hashes)
contract_type_ids = TypeScript.where(code_hash: binary_hashes).pluck(:id)
progress_bar = ProgressBar.create({ total: live_cells.count, format: "%e %B %p%% %c/%C" })
contract_type_ids.each do |type_id|
puts "============#{type_id}"
progress_bar.increment
live_cells = CellOutput.live.where(type_script_id: type_id)

live_cells.find_in_batches do |outputs|
Expand Down

0 comments on commit d40efa3

Please sign in to comment.