summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorcrowlKats <crowlkats@gmail.com>2021-05-27 07:23:12 +0200
committerGitHub <noreply@github.com>2021-05-27 14:23:12 +0900
commitb21fa78a1e8b2c9df549b29454970b39da708a5c (patch)
tree1282055ff7703d34dc78d526ffa8ffd0b5626bee /runtime/worker.rs
parentd5d59bb794503416ced2c3ad6a2bb043f97ce3e5 (diff)
feat(cli): add origin data dir to deno info (#10589)
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 57f4b532f..971449859 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -69,7 +69,7 @@ pub struct WorkerOptions {
pub no_color: bool,
pub get_error_class_fn: Option<GetErrorClassFn>,
pub location: Option<Url>,
- pub location_data_dir: Option<std::path::PathBuf>,
+ pub origin_storage_dir: Option<std::path::PathBuf>,
pub blob_url_store: BlobUrlStore,
pub broadcast_channel: InMemoryBroadcastChannel,
}
@@ -106,7 +106,7 @@ impl MainWorker {
options.user_agent.clone(),
options.ca_data.clone(),
),
- deno_webstorage::init(options.location_data_dir.clone()),
+ deno_webstorage::init(options.origin_storage_dir.clone()),
deno_crypto::init(options.seed),
deno_broadcast_channel::init(
options.broadcast_channel.clone(),
@@ -307,7 +307,7 @@ mod tests {
no_color: true,
get_error_class_fn: None,
location: None,
- location_data_dir: None,
+ origin_storage_dir: None,
blob_url_store: BlobUrlStore::default(),
broadcast_channel: InMemoryBroadcastChannel::default(),
};