Skip to content

Commit bafd8f8

Browse files
committed
Handle scorer persistence error with Persister
1 parent 668a744 commit bafd8f8

File tree

1 file changed

+6
-0
lines changed
  • lightning-background-processor/src

1 file changed

+6
-0
lines changed

lightning-background-processor/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,12 @@ mod tests {
450450
}
451451
}
452452

453+
if key == "scorer" {
454+
if let Some((error, message)) = self.scorer_error {
455+
return Err(std::io::Error::new(error, message))
456+
}
457+
}
458+
453459
self.filesystem_persister.persist(key, object)
454460
}
455461
}

0 commit comments

Comments
 (0)