freeuseporn
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user