Use verify spawner in all cases in verify path

This commit is contained in:
asonix 2023-07-27 13:09:03 -05:00
parent f06316c6b2
commit 7438b0c5d0
2 changed files with 6 additions and 1 deletions

View file

@ -315,7 +315,7 @@ async fn do_server_main(
.wrap(config.digest_middleware().spawner(verify_spawner.clone()))
.wrap(VerifySignature::new(
MyVerify(
requests,
requests.spawner(verify_spawner.clone()),
actors.clone(),
state.clone(),
verify_spawner.clone(),

View file

@ -208,6 +208,11 @@ impl Requests {
}
}
pub(crate) fn spawner(mut self, spawner: Spawner) -> Self {
self.config = self.config.spawner(spawner);
self
}
pub(crate) fn reset_breaker(&self, iri: &IriString) {
self.breakers.succeed(iri);
}