-
Notifications
You must be signed in to change notification settings - Fork 112
network: move hive message handler from Peer type #1801
Conversation
42f22c8
to
646999e
Compare
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.
Is the code just moved except weeding the kademlia member out? If its actually changed it's better if it is changed in place first then move blocks of code.
As a general comment I don't like the approach that the hive is a hybrid service which both manages the node's own connectivity and is a service for distributing peer information to others in the network. One is a network service, the other for internal consumption. I would have liked to see a SWIP and a discussion on how this separation of concerns can best be achieved. It was also in the pipeline for the outstanding kademlia tasks that were agreed with Epic Labs, but lower in priority.
I was never a part of this discussion, then I guess it's safe to say I have no clue what you're talking about.
I was assuming this comment will arrive sooner or later. |
4743083
to
dbe4ec2
Compare
680f79b
to
de5f598
Compare
de5f598
to
f4aa5ce
Compare
f4aa5ce
to
dfb3f5d
Compare
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.
@acud Can you please let me know how I should go about comparing the changes here? If these are very few actual changes then perhaps you could list them all in a bullet point list? I do not want to rubber-stamp a PR just because it is claimed to be simple, when I can't really evaluate what has changed because the changes have been buried in moves between files. Sorry if it's a pain in the ass <3
4d72f7e
to
f43c4dd
Compare
f43c4dd
to
b8619ac
Compare
Señor @nolash, just for you:
I guess you could go about comparing bit by bit by checking out the branch then comparing with:
then compare the output of the diff with what was added to Is this informative enough on how to go about reviewing this? |
c788beb
to
b8619ac
Compare
@acud Thanks for clarifying. I see you forgot to include that you deleted the It's not that I don't believe you and trust you when you say this and this was done. But if we can rely on that we never do code moves with changes in the same commit, we can also have the extra security of being able to audit all changes. Otherwise there is always a chance something may have snuck in (especially when it comes to larger PRs). For my part I don't mind if the moves are within a single PR, as long as the move itself without any changes is in a single commit, and that commit is referenced in the description. But in my opinion the best is a separate PR for code block moves. Please fix the test, and I'll approve. Thanks. |
1c64dbc
to
75be37a
Compare
75be37a
to
4c0a8be
Compare
@nolash the PR is now in diminished state since the dreadful discovery tests started failing with the last handler changes (and i'd really be happy to not go into this rabbithole of debugging them for 2 months). and I think you can even review the changes without using any of your favorite command line utilities. |
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.
I'm assuming this is now only moving code blocks, haven't looked for or checked code changes.
This PR moves the Hive protocol's message handlers from the
Peer
type to theHive
type.