Skip to content

Commit

Permalink
Put debug-dump-store behind a cfg flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Sep 13, 2023
1 parent 33fad1b commit ee3fa53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ impl<P: Platform> ServiceResources<P> {

// This is now preferably done using littlefs-fuse (when device is not yet locked),
// and should be removed from firmware completely
#[cfg(debug_dump_store)]
Request::DebugDumpStore(_request) => {

info_now!(":: PERSISTENT");
Expand Down Expand Up @@ -345,6 +346,9 @@ impl<P: Platform> ServiceResources<P> {

}

#[cfg(not(debug_dump_store))]
Request::DebugDumpStore(_request) => Err(Error::RequestNotAvailable),

Request::ReadDirFirst(request) => {
let maybe_entry = match filestore.read_dir_first(&request.dir, request.location, request.not_before_filename.as_deref())? {
Some((entry, read_dir_state)) => {
Expand Down

0 comments on commit ee3fa53

Please sign in to comment.