freeuseporn

This commit is contained in:
Simon
2026-03-31 16:39:27 +00:00
parent fb9098c689
commit 38acb2b5a5
5 changed files with 594 additions and 13 deletions

View File

@@ -597,7 +597,11 @@ where
"provider uploader guard exit provider={} context={} matched={}",
provider_name,
context,
result.as_ref().ok().and_then(|value| value.as_ref()).is_some()
result
.as_ref()
.ok()
.and_then(|value| value.as_ref())
.is_some()
);
result
}
@@ -1262,7 +1266,8 @@ mod tests {
let now = Instant::now();
let mut counted = 0;
for step in 0..VALIDATION_FAILURES_FOR_ERROR {
counted = record_validation_failure(provider_id, now + VALIDATION_COOLDOWN * step as u32);
counted =
record_validation_failure(provider_id, now + VALIDATION_COOLDOWN * step as u32);
}
assert_eq!(counted, VALIDATION_FAILURES_FOR_ERROR);