diff options
author | Jimmy Wärting <jimmy@warting.se> | 2021-07-05 15:34:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 15:34:37 +0200 |
commit | 2c0b0e45b72ef1b5d7fa95e1e110d07ddbc720f7 (patch) | |
tree | 3b54a6f1f156f8d105cf41ac290035c8b5f8f1c9 /runtime/worker.rs | |
parent | ea87d860beda7cd40eb6857199a00e5ba8700fd2 (diff) |
refactor: asynchronous blob backing store (#10969)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index de1260fa6..555fc89d2 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -22,7 +22,7 @@ use deno_core::ModuleId; use deno_core::ModuleLoader; use deno_core::ModuleSpecifier; use deno_core::RuntimeOptions; -use deno_web::BlobUrlStore; +use deno_web::BlobStore; use log::debug; use std::env; use std::pin::Pin; @@ -68,7 +68,7 @@ pub struct WorkerOptions { pub get_error_class_fn: Option<GetErrorClassFn>, pub location: Option<Url>, pub origin_storage_dir: Option<std::path::PathBuf>, - pub blob_url_store: BlobUrlStore, + pub blob_store: BlobStore, pub broadcast_channel: InMemoryBroadcastChannel, } @@ -94,7 +94,7 @@ impl MainWorker { deno_webidl::init(), deno_console::init(), deno_url::init(), - deno_web::init(options.blob_url_store.clone(), options.location.clone()), + deno_web::init(options.blob_store.clone(), options.location.clone()), deno_fetch::init::<Permissions>( options.user_agent.clone(), options.ca_data.clone(), @@ -298,7 +298,7 @@ mod tests { get_error_class_fn: None, location: None, origin_storage_dir: None, - blob_url_store: BlobUrlStore::default(), + blob_store: BlobStore::default(), broadcast_channel: InMemoryBroadcastChannel::default(), }; |