Skip to content

Commit

Permalink
Do not clean renders when not supported
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bottriell <rbottriell@ilm.com>
  • Loading branch information
rydrman committed May 3, 2024
1 parent 0f6ba7d commit c90811e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/spfs/src/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,15 @@ where
};
let repo = repo.opened().await?;

result += self
result += match self
.remove_unvisited_renders_and_proxies_for_storage(None, &repo)
.await?;
.await
{
// If the repository is not setup for render storage, then we
// quietly ignore this entire process
Err(Error::NoRenderStorage(_)) => return Ok(result),
res => res?,
};

let renders_for_all_users = repo.renders_for_all_users()?;

Expand Down

0 comments on commit c90811e

Please sign in to comment.