Skip to content

Conversation

@iovoid
Copy link
Contributor

@iovoid iovoid commented Nov 5, 2025

Motivation

Currently the log incorrectly always shows max_queue_length as 0.

Description

The move closure takes ownership and mutates a copy of the max_queue_length. This is fixed by taking the reference outside.

@iovoid iovoid requested a review from a team as a code owner November 5, 2025 14:36
@github-actions github-actions bot added the L1 Ethereum client label Nov 5, 2025
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Lines of code report

Total lines added: 1
Total lines removed: 0
Total lines changed: 1

Detailed view
+----------------------------------------+-------+------+
| File                                   | Lines | Diff |
+----------------------------------------+-------+------+
| ethrex/crates/blockchain/blockchain.rs | 1302  | +1   |
+----------------------------------------+-------+------+

Copy link
Collaborator

@MegaRedHand MegaRedHand left a comment

Choose a reason for hiding this comment

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

LGTM. What a footgun!

@github-project-automation github-project-automation bot moved this to In Review in ethrex_l1 Nov 5, 2025
@jrchatruc jrchatruc enabled auto-merge November 5, 2025 15:10
@jrchatruc jrchatruc added this pull request to the merge queue Nov 5, 2025
Merged via the queue into main with commit 80aaef8 Nov 5, 2025
41 checks passed
@jrchatruc jrchatruc deleted the fix/max_queue_length branch November 5, 2025 15:28
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Nov 5, 2025
xqft pushed a commit that referenced this pull request Nov 11, 2025
**Motivation**

Currently the log incorrectly always shows max_queue_length as 0.

**Description**

The move closure takes ownership and mutates _a copy_ of the
max_queue_length. This is fixed by taking the reference outside.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants