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

Fix: avoid infinite recursion with Message::max_encoded_len() #1982

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

lemunozm
Copy link
Contributor

Description

This issue fixes the max_encoded_len() to avoid infinite computation in Message type.

This PR fixes our benchmarking CI job, which passes even encountering the error

@lemunozm lemunozm added I2-bug The code fails to follow expected behaviour. I12-ci Issue related to CI labels Aug 22, 2024
@lemunozm lemunozm self-assigned this Aug 22, 2024
@lemunozm lemunozm changed the title Avoid cyclical max_encoded_len computation Fix: avoid infinite recursion with Message::max_encoded_len() Aug 22, 2024
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 49.01%. Comparing base (6d5596f) to head (7a54ad1).
Report is 1 commits behind head on main.

Files Patch % Lines
pallets/liquidity-pools/src/message.rs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1982      +/-   ##
==========================================
+ Coverage   48.94%   49.01%   +0.07%     
==========================================
  Files         183      183              
  Lines       13202    13201       -1     
==========================================
+ Hits         6462     6471       +9     
+ Misses       6740     6730      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lemunozm lemunozm merged commit d26b99e into main Aug 23, 2024
16 checks passed
@lemunozm lemunozm deleted the fix/ci-encoded-len-bench branch August 23, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The code fails to follow expected behaviour. I12-ci Issue related to CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants