Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix comment
  • Loading branch information
liamaharon committed Apr 27, 2023
commit c697d2be1ca7ae42e7de91a478e9e7edb7e98320
4 changes: 2 additions & 2 deletions utils/frame/remote-externalities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ where
const DEFAULT_KEY_DOWNLOAD_PAGE: u32 = 1000;

/// Get the number of threads to use.
/// Limit. Performance improvement beyond a small number of threads is marginal, and too many
/// threads can create issues with the HttpClient.
/// Cap the number of threads, because performance improvement beyond a small number of threads
/// is marginal, and too many threads can create issues with the HttpClient.
fn threads() -> NonZeroUsize {
let avaliable = thread::available_parallelism()
.unwrap_or(NonZeroUsize::new(1usize).expect("1 is non-zero; qed"))
Expand Down