Skip to content

Commit

Permalink
refactor(ext/net): make op_connect & op_connect_tls public (denoland#…
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarohith committed Sep 20, 2021
1 parent 269bf38 commit 3708cbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/net/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub struct DefaultTlsOptions {
/// using type alias for a `Option<Vec<String>>` could work, but there's a high chance
/// that there might be another type alias pointing to a `Option<Vec<String>>`, which
/// would override previously used alias.
pub struct UnsafelyIgnoreCertificateErrors(Option<Vec<String>>);
pub struct UnsafelyIgnoreCertificateErrors(pub Option<Vec<String>>);

pub fn init<P: NetPermissions + 'static>(
root_cert_store: Option<RootCertStore>,
Expand Down
4 changes: 2 additions & 2 deletions ext/net/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,13 @@ where
}

#[derive(Deserialize)]
struct ConnectArgs {
pub struct ConnectArgs {
transport: String,
#[serde(flatten)]
transport_args: ArgsEnum,
}

async fn op_connect<NP>(
pub async fn op_connect<NP>(
state: Rc<RefCell<OpState>>,
args: ConnectArgs,
_: (),
Expand Down
2 changes: 1 addition & 1 deletion ext/net/ops_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ where
})
}

async fn op_connect_tls<NP>(
pub async fn op_connect_tls<NP>(
state: Rc<RefCell<OpState>>,
args: ConnectTlsArgs,
_: (),
Expand Down

0 comments on commit 3708cbc

Please sign in to comment.