Skip to content

Conversation

@syjn99
Copy link
Member

@syjn99 syjn99 commented Aug 12, 2025

What was wrong?

Yesterday, there was a new Rust nightly release. This introduced a new solver, which catches bad Rust patterns more accurately.

My last PR (#679) has an anti-pattern (e.g., using Box::pin to make it run). It makes our CI (cargo udeps) fail since #694. See the action result.

How was it fixed?

This PR refactors LeanChainService methods by avoiding recursive asynchronous function calls usingmpsc. (Decoupling the call cycle). Therefore, our udeps is much happier right now :)

I also added to log source_slot in each vote as this shows the chain finalization much clear.

To-Do

@syjn99 syjn99 requested a review from shariqnaiyer August 12, 2025 08:08
@syjn99 syjn99 changed the title refactor: recursive async function issue in handle_item refactor: recursive async function issue in handle_item Aug 12, 2025
@syjn99 syjn99 marked this pull request as ready for review August 12, 2025 08:09
@syjn99 syjn99 requested a review from KolbyML as a code owner August 12, 2025 08:09
@syjn99 syjn99 requested a review from varun-doshi August 13, 2025 01:46
Copy link
Contributor

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: looks good thank you for your contribution!

@KolbyML KolbyML added this pull request to the merge queue Aug 13, 2025
Merged via the queue into ReamLabs:master with commit 8b4854a Aug 13, 2025
16 checks passed
allnil pushed a commit to loadnetwork/ream that referenced this pull request Aug 18, 2025
refactor: recursive async function issue in handle_item
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.

2 participants