mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
Fix image_cache threadpool configuration (#37650)
Similar to #37638. It was using `threadpools_async_runtime_workers_max`, and `threadpools_image_cache_workers_max` was unused, this PR fixes that. Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
parent
8138ea6ca7
commit
2879aa264d
1 changed files with 1 additions and 1 deletions
|
@ -549,7 +549,7 @@ impl ImageCache for ImageCacheImpl {
|
|||
let thread_count = thread::available_parallelism()
|
||||
.map(|i| i.get())
|
||||
.unwrap_or(pref!(threadpools_fallback_worker_num) as usize)
|
||||
.min(pref!(threadpools_async_runtime_workers_max).max(1) as usize);
|
||||
.min(pref!(threadpools_image_cache_workers_max).max(1) as usize);
|
||||
|
||||
ImageCacheImpl {
|
||||
store: Arc::new(Mutex::new(ImageCacheStore {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue