Skip to content

Commit

Permalink
add a core resource thread-pool
Browse files Browse the repository at this point in the history
  • Loading branch information
gterzian committed Feb 14, 2020
1 parent baac1e2 commit 780a1bd
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 219 deletions.
4 changes: 2 additions & 2 deletions components/net/fetch/methods.rs
Expand Up @@ -4,7 +4,7 @@

use crate::data_loader::decode;
use crate::fetch::cors_cache::CorsCache;
use crate::filemanager_thread::{fetch_file_in_chunks, FileManager, FILE_CHUNK_SIZE};
use crate::filemanager_thread::{FileManager, FILE_CHUNK_SIZE};
use crate::http_loader::{determine_request_referrer, http_fetch, HttpState};
use crate::http_loader::{set_default_accept, set_default_accept_language};
use crate::subresource_integrity::is_response_integrity_valid;
Expand Down Expand Up @@ -701,7 +701,7 @@ fn scheme_fetch(
*done_chan = Some((done_sender.clone(), done_receiver));
*response.body.lock().unwrap() = ResponseBody::Receiving(vec![]);

fetch_file_in_chunks(
context.filemanager.fetch_file_in_chunks(
done_sender,
reader,
response.body.clone(),
Expand Down

0 comments on commit 780a1bd

Please sign in to comment.