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

fix(network): remove peer id from network manager #1927

Merged

Conversation

nagmo-starkware
Copy link
Contributor

@nagmo-starkware nagmo-starkware commented Apr 21, 2024

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information


This change is Reviewable

@nagmo-starkware
Copy link
Contributor Author

nagmo-starkware commented Apr 21, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nagmo-starkware and the rest of your teammates on Graphite Graphite

@nagmo-starkware nagmo-starkware force-pushed the nevo/network/remove_peer_id_from_network_manager branch from 1eec67b to f2ed7d3 Compare April 21, 2024 06:36
@nagmo-starkware nagmo-starkware changed the base branch from nevo/network/catch_more_swarm_event_in_network_manager to main April 21, 2024 06:36
@nagmo-starkware nagmo-starkware marked this pull request as ready for review April 21, 2024 06:36
Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @nagmo-starkware)


crates/papyrus_network/src/network_manager/mod.rs line 335 at r1 (raw file):

        let mut query_bytes = vec![];
        query.encode(&mut query_bytes).expect("failed to encode query");
        match self.swarm.send_query(query_bytes, PeerId::random(), protocol) {

Remove peer id as an argument instead of passing a random peer id


crates/papyrus_network/src/network_manager/test.rs line 447 at r1 (raw file):

#[tokio::test]
async fn return_fin_to_subscriber_unit_test() {

Why erase this test?

Copy link
Contributor Author

@nagmo-starkware nagmo-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ShahakShama)


crates/papyrus_network/src/network_manager/mod.rs line 335 at r1 (raw file):

Previously, ShahakShama wrote…

Remove peer id as an argument instead of passing a random peer id

there's atodo for that it's a bit more involved


crates/papyrus_network/src/network_manager/test.rs line 447 at r1 (raw file):

Previously, ShahakShama wrote…

Why erase this test?

not relevant any more the funtion being tested is deleted

Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nagmo-starkware)

@nagmo-starkware nagmo-starkware added this pull request to the merge queue Apr 30, 2024
Merged via the queue into main with commit 9c0757a Apr 30, 2024
38 of 44 checks passed
@nagmo-starkware nagmo-starkware deleted the nevo/network/remove_peer_id_from_network_manager branch April 30, 2024 06:37
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants