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

refactor: extract configuration types to reth-network-types #9136

Merged
merged 6 commits into from
Jun 27, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Jun 27, 2024

Closes #8418

Extracts PeersConfig and SessionConfig to new crate reth-network-types and removes reth-network dependency from reth-config

I've extracted ConnectionsConfig from ConnectionInfo as it seemed reasonable and allowed to keep ConnectionInfo in reth-network. Besides that, other types were moved as-is.

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.

clean!

Comment on lines +932 to +933
/// Restrictions on number of connections.
config: ConnectionsConfig,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is a lot cleaner

@@ -12,7 +12,7 @@ workspace = true

[dependencies]
# reth
reth-network.workspace = true
reth-network-types = { workspace = true, features = ["serde"] }
Copy link
Collaborator

Choose a reason for hiding this comment

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

perfect

@mattsse mattsse added C-debt Refactor of code section that is hard to understand or maintain A-networking Related to networking in general labels Jun 27, 2024
@mattsse mattsse added this pull request to the merge queue Jun 27, 2024
Merged via the queue into paradigmxyz:main with commit 18eef6a Jun 27, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move reth-network config types to new crate network-types
2 participants