-
Notifications
You must be signed in to change notification settings - Fork 134
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: roles_logic_sv2
crate
#1268
Comments
stratum/protocols/v2/roles-logic-sv2/Cargo.toml Lines 45 to 46 in 67a3f00
the only place this is used is on some code that was commented out for stratum/protocols/v2/roles-logic-sv2/src/utils.rs Lines 82 to 112 in 67a3f00
IMO there's no point in keeping around:
we should clean those up and simply leave #476 as a tracker for this potential improvement |
It is only consumed by We should consider migrating this module away from |
about
as discussed here, this architecture is suboptimal a better approach could be inspired by the this trait-based approach would also make it easier to leverage this should also cover |
similarly to |
as discussed here, we should rename it into |
|
|
|
roles-logic is supposed to be used by other impls directly so make sure that we really don't want to export the functions. Sometimes I feel that we should export more of them. Btw before removing ask me cause I use several of them. |
Background
This task is an outcome of the
protocols
Rust docs issues tracked in #845.While documenting
protocols::v2::roles_logic_sv2
in #1014, areas of potential code debt were identified.This issue servers as a place to list out these items to then be addressed in an organized manner. The initial Rust documentation effort was an immediate action, while a refactoring (which implies breaking API changes) is not so urgent priority, so for now we should leave this in the backlog for an appropriate moment in the future.
The text was updated successfully, but these errors were encountered: