refactor: cli doesn't need to depend on deno_tls (#12952)

also move create_http_client to deno_fetch
This commit is contained in:
Ryan Dahl 2021-12-01 11:13:11 -05:00 committed by GitHub
parent 4c36fa1fdf
commit 084caffc08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 67 additions and 67 deletions

View file

@ -148,7 +148,8 @@ pub async fn fetch_once(
mod tests {
use super::*;
use crate::version;
use deno_tls::create_http_client;
use deno_runtime::deno_fetch::create_http_client;
use deno_runtime::deno_tls::rustls::RootCertStore;
use std::fs::read;
fn create_test_client() -> Client {
@ -413,7 +414,7 @@ mod tests {
let url = Url::parse("https://deno.land").unwrap();
let client = create_http_client(
version::get_user_agent(),
Some(deno_tls::rustls::RootCertStore::empty()), // no certs loaded at all
Some(RootCertStore::empty()), // no certs loaded at all
vec![],
None,
None,