style: apply nix fmt
This commit is contained in:
parent
9a0d525fdf
commit
e1e3bda94a
7 changed files with 22 additions and 10 deletions
|
|
@ -41,7 +41,11 @@ impl CompactionPolicy for PercentPolicy {
|
|||
if self.percent == 0 {
|
||||
return false;
|
||||
}
|
||||
let Some(window) = usage.context_window.or(self.default_window).filter(|&w| w > 0) else {
|
||||
let Some(window) = usage
|
||||
.context_window
|
||||
.or(self.default_window)
|
||||
.filter(|&w| w > 0)
|
||||
else {
|
||||
return false;
|
||||
};
|
||||
usage.context_tokens.saturating_mul(100) >= u64::from(self.percent) * window
|
||||
|
|
|
|||
Loading…
Reference in a new issue