Skip to content

Commit

Permalink
link followup
Browse files Browse the repository at this point in the history
  • Loading branch information
eagr committed Nov 27, 2023
1 parent 6b1e5f3 commit 3530766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion substrate/utils/frame/remote-externalities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ where
return vec![StorageKey(prefix)]
}

// FIXME: figure out a better algo for dividing workload
let chunks = 16;
let step = 0x10000 / chunks;
let ext = scale - 2;
Expand Down Expand Up @@ -694,6 +693,8 @@ where
) -> Result<Vec<KeyValue>, &'static str> {
let start = Instant::now();
let mut sp = Spinner::with_timer(Spinners::Dots, "Scraping keys...".into());
// TODO We could start downloading when having collected the first batch of keys
// https://github.com/paritytech/polkadot-sdk/issues/2494
let keys = self
.rpc_get_keys_parallel(&prefix, at, Self::PARALLEL_REQUESTS)
.await?
Expand Down

0 comments on commit 3530766

Please sign in to comment.