Skip to content

Conversation

@radik878
Copy link
Contributor

Remove Clone from SessionCounter to prevent accidental duplication of mutable state. SessionCounter tracks live counters within SessionManager and is not cloned anywhere; keeping Clone is a footgun that could lead to diverging metrics if copies are modified independently. For cloneable counters we use Arc-based wrappers (see DisconnectionsCounter); SessionCounter should remain non-clone to reflect its ownership and mutation model.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

I like this

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Oct 15, 2025
@mattsse mattsse enabled auto-merge October 15, 2025 20:14
@mattsse mattsse added this pull request to the merge queue Oct 15, 2025
Merged via the queue into paradigmxyz:main with commit 080d508 Oct 15, 2025
40 of 41 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Oct 15, 2025
emhane pushed a commit to op-rs/op-reth that referenced this pull request Oct 20, 2025
emhane pushed a commit to op-rs/op-reth that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants