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

routing: remove Node struct #762

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

avelanarius
Copy link

Remove struct scylla::routing::Node from routing.rs. This structure was introduced in 2020 in 1c8df89 and it is unused in our current code (and it looks like the original commit didn't even use it at all).

Moreover, this struct clashes with scylla::transport::Node making it error-prone to find the wrong Node struct for a user of the driver. The deleted Node structure also relied solely on SocketAddr, while we want to identify the nodes by host_id (as in scylla::transport::Node).

Refs #660

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

Remove struct scylla::routing::Node from routing.rs. This structure
was introduced in 2020 in 1c8df89
and it is unused in our current code (and it looks like the original
commit didn't even use it at all). 

Moreover, this struct clashes with scylla::transport::Node making it
error-prone to find the wrong Node struct for a user of the driver. 
The deleted Node structure also relied solely on SocketAddr, while we 
want to identify the nodes by host_id (as in scylla::transport::Node).

Refs scylladb#660.
@avelanarius avelanarius added this to the 1.0.0 milestone Jul 19, 2023
@avelanarius avelanarius requested a review from piodul July 19, 2023 14:43
@piodul piodul merged commit 9a08488 into scylladb:main Jul 20, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants