Skip to content

Commit

Permalink
aggregation macros
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff committed Mar 19, 2024
1 parent 7492eb6 commit 9ae90c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tuxedo-core/aggregator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,13 @@ pub fn tuxedo_constraint_checker(_attrs: TokenStream, body: TokenStream) -> Toke
fn check (
&self,
inputs: &[tuxedo_core::dynamic_typing::DynamicallyTypedData],
evicted_inputs: &[tuxedo_core::dynamic_typing::DynamicallyTypedData],
peeks: &[tuxedo_core::dynamic_typing::DynamicallyTypedData],
outputs: &[tuxedo_core::dynamic_typing::DynamicallyTypedData],
) -> Result<TransactionPriority, Self::Error> {
match self {
#(
Self::#variants5(inner) => inner.check(inputs, peeks, outputs).map_err(|e| Self::Error::#variants5(e)),
Self::#variants5(inner) => inner.check(inputs, evicted_inputs, peeks, outputs).map_err(|e| Self::Error::#variants5(e)),
)*
}
}
Expand Down

0 comments on commit 9ae90c1

Please sign in to comment.