diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-10-31 19:14:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 19:14:22 +0100 |
commit | e98a36b213173dbae60fd2594412e91404b2cef2 (patch) | |
tree | 29e9622d9b7c48c2ca4fbd126feddda490654b32 /ext/fetch/lib.rs | |
parent | e06515c5a904f92946bf20070a554094336f71ae (diff) |
cleanup(ext/fetch): consistent op names (#12612)
Rename `op_create_http_client` to `op_fetch_custom_client` to follow prefix/namespaced convention
Diffstat (limited to 'ext/fetch/lib.rs')
-rw-r--r-- | ext/fetch/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/fetch/lib.rs b/ext/fetch/lib.rs index ae81d126c..13adae1a7 100644 --- a/ext/fetch/lib.rs +++ b/ext/fetch/lib.rs @@ -77,7 +77,10 @@ pub fn init<P: FetchPermissions + 'static>( ("op_fetch_send", op_async(op_fetch_send)), ("op_fetch_request_write", op_async(op_fetch_request_write)), ("op_fetch_response_read", op_async(op_fetch_response_read)), - ("op_create_http_client", op_sync(op_create_http_client::<P>)), + ( + "op_fetch_custom_client", + op_sync(op_fetch_custom_client::<P>), + ), ]) .state(move |state| { state.put::<reqwest::Client>({ @@ -455,7 +458,7 @@ pub struct CreateHttpClientOptions { private_key: Option<String>, } -pub fn op_create_http_client<FP>( +pub fn op_fetch_custom_client<FP>( state: &mut OpState, args: CreateHttpClientOptions, _: (), |