-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean!
/// Restrictions on number of connections. | ||
config: ConnectionsConfig, |
There was a problem hiding this comment.
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"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect
Closes #8418
Extracts
PeersConfig
andSessionConfig
to new cratereth-network-types
and removesreth-network
dependency fromreth-config
I've extracted
ConnectionsConfig
fromConnectionInfo
as it seemed reasonable and allowed to keepConnectionInfo
inreth-network
. Besides that, other types were moved as-is.