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

feat: dont artifically push replication #964

Merged
merged 4 commits into from Nov 14, 2023

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Nov 14, 2023

Description

Summary generated by Reviewpad on 14 Nov 23 05:45 UTC

This pull request includes two patches.

The first patch removes unnecessary code related to replication in the SwarmDriver struct. It removes the condition that checked if the replication fetcher needs to fire events for replication keys when the node is not driving forward. This condition is no longer needed due to changes in replication behavior.

The second patch makes small tweaks to the gossip message receipt for efficiency in the Node struct. It modifies the broadcast function in the NodeEventsChannel struct to handle errors when trying to broadcast a node event and includes additional debug information. It also adds a #[debug(skip)] attribute to the msg field in the NodeEvent::GossipsubMsgReceived variant to exclude it from debug output. Additionally, it refactors the event handling code in the Node struct to handle gossip messages more efficiently and to only broadcast events if there are receivers on the events channel.

Overall, these patches improve the code by removing unnecessary checks and improving efficiency in gossip message handling.

that should be unnecessary now with repl on PUT and larger replication area in general
@reviewpad reviewpad bot added the Small Pull request is small label Nov 14, 2023
@joshuef joshuef marked this pull request as ready for review November 14, 2023 06:57
@joshuef joshuef added this pull request to the merge queue Nov 14, 2023
Merged via the queue into maidsafe:main with commit 3fd17c5 Nov 14, 2023
28 checks passed
@joshuef joshuef deleted the RemoveArtificalReplPush branch November 14, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants