summaryrefslogtreecommitdiff
path: root/ext/fetch/fs_fetch_handler.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-08-09 10:47:47 -0600
committerGitHub <noreply@github.com>2023-08-09 10:47:47 -0600
commitddfcf1add462b200e8cf738ffc25d9fa1e98c9dc (patch)
tree4a807c942fec871a2d759b21599670d6dfbf8cad /ext/fetch/fs_fetch_handler.rs
parent03e963f57831367a39996c7d88bc9875e97d52d7 (diff)
refactor(ext/fetch): Remove FetchRequestBodyResource from FetchHandler interface (#20100)
This is unused and will allow us to remove `FetchRequestBodyResource` in a future PR.
Diffstat (limited to 'ext/fetch/fs_fetch_handler.rs')
-rw-r--r--ext/fetch/fs_fetch_handler.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/fetch/fs_fetch_handler.rs b/ext/fetch/fs_fetch_handler.rs
index 0a83faaa1..83880c4ca 100644
--- a/ext/fetch/fs_fetch_handler.rs
+++ b/ext/fetch/fs_fetch_handler.rs
@@ -3,7 +3,6 @@
use crate::CancelHandle;
use crate::CancelableResponseFuture;
use crate::FetchHandler;
-use crate::FetchRequestBodyResource;
use deno_core::error::type_error;
use deno_core::futures::FutureExt;
@@ -25,11 +24,7 @@ impl FetchHandler for FsFetchHandler {
&self,
_state: &mut OpState,
url: Url,
- ) -> (
- CancelableResponseFuture,
- Option<FetchRequestBodyResource>,
- Option<Rc<CancelHandle>>,
- ) {
+ ) -> (CancelableResponseFuture, Option<Rc<CancelHandle>>) {
let cancel_handle = CancelHandle::new_rc();
let response_fut = async move {
let path = url.to_file_path()?;
@@ -49,6 +44,6 @@ impl FetchHandler for FsFetchHandler {
.or_cancel(&cancel_handle)
.boxed_local();
- (response_fut, None, Some(cancel_handle))
+ (response_fut, Some(cancel_handle))
}
}