Skip to content

Commit

Permalink
more fixes i stg
Browse files Browse the repository at this point in the history
  • Loading branch information
theswerd committed Feb 13, 2025
1 parent bb49d52 commit b1c8bff
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,22 @@ impl FetchPermissions for CloudstateFetchPermissions {

fn check_read<'a>(
&mut self,
resolved: bool,
p: &'a Path,
_api_name: &str,
) -> Result<std::borrow::Cow<'a, Path>, PermissionCheckError> {
api_name: &str,
) -> Result<std::borrow::Cow<'a, Path>, deno_fs::FsError> {
debug!("checking read fetch permission");
Ok(p.to_path_buf().into())
}

// fn check_read<'a>(
// &mut self,
// p: &'a Path,
// _api_name: &str,
// ) -> Result<std::borrow::Cow<'a, Path>, PermissionCheckError> {
// debug!("checking read fetch permission");
// Ok(p.to_path_buf().into())
// }
}

// struct CloudstateNetPermissions {}
Expand Down

0 comments on commit b1c8bff

Please # to comment.