fix(static-file): pass producer as Arc<Mutex<_>> to ensure only one is active (#7143)

Co-authored-by: joshieDo <ranriver@protonmail.com>
This commit is contained in:
Alexey Shekhirin
2024-03-15 13:26:15 +00:00
committed by GitHub
parent 189de79bd9
commit 52d49832d9
10 changed files with 149 additions and 46 deletions

View File

@ -131,7 +131,7 @@ where
) -> Option<CallOutcome> {
call_inspectors!([&mut self.custom_print_tracer], |inspector| {
if let Some(outcome) = inspector.call(context, inputs) {
return Some(outcome);
return Some(outcome)
}
});
@ -151,7 +151,7 @@ where
// If the inspector returns a different ret or a revert with a non-empty message,
// we assume it wants to tell us something
if new_ret != outcome {
return new_ret;
return new_ret
}
});
@ -166,7 +166,7 @@ where
) -> Option<CreateOutcome> {
call_inspectors!([&mut self.custom_print_tracer], |inspector| {
if let Some(out) = inspector.create(context, inputs) {
return Some(out);
return Some(out)
}
});
@ -186,7 +186,7 @@ where
// If the inspector returns a different ret or a revert with a non-empty message,
// we assume it wants to tell us something
if new_ret != outcome {
return new_ret;
return new_ret
}
});