Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way for policy engines to pass additional state to callbacks #92

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

peterbroadhurst
Copy link
Contributor

Provides an alternative approach the 2nd item in #91 , allowing any policy engine implementation to pass a closure in with additional variables it's safe for that implementation to pass through. For example, a transaction-specific context object.

Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
@codecov-commenter
Copy link

Codecov Report

Merging #92 (5026fa0) into main (e6fe782) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #92   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files          77       77           
  Lines        5004     5008    +4     
=======================================
+ Hits         5003     5007    +4     
  Misses          1        1           
Impacted Files Coverage Δ
pkg/apitypes/managed_tx.go 100.00% <ø> (ø)
pkg/fftm/transaction_events_handler.go 100.00% <100.00%> (ø)

@peterbroadhurst peterbroadhurst merged commit 6ff003a into hyperledger:main Jul 10, 2023
@peterbroadhurst peterbroadhurst deleted the closures-for-context branch July 10, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants