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: missed passing protocols to addPeer #682

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Conversation

harsh-98
Copy link
Contributor

Description

Changes

  • Pass protocols to addPeer in peerManager.

Tests

@status-im-auto
Copy link

status-im-auto commented Aug 25, 2023

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8c5631a #1 2023-08-25 07:13:23 ~1 min linux 📦deb
✔️ 8c5631a #1 2023-08-25 07:14:00 ~2 min nix-flake 📄log
✔️ 8c5631a #1 2023-08-25 07:15:03 ~3 min tests 📄log
✔️ 8c5631a #1 2023-08-25 07:15:09 ~3 min tests 📄log
✔️ 8c5631a #1 2023-08-25 07:15:26 ~3 min android 📦tgz
✔️ 8c5631a #1 2023-08-25 07:15:35 ~3 min ios 📦tgz

@@ -260,7 +260,7 @@ func (pm *PeerManager) AddPeer(address ma.Multiaddr, origin wps.Origin, protocol
}

//Add to the peer-store
err = pm.addPeer(info.ID, info.Addrs, origin)
err = pm.addPeer(info.ID, info.Addrs, origin, protocols...)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think i did a lot of refactor while working on this code and might have missed this.
Please add some tests to verify such details so that we can catch these issues during unit tests itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add that test as part of peerManager test refactor.

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM

@harsh-98 harsh-98 merged commit bfbc50e into master Aug 25, 2023
3 checks passed
@harsh-98 harsh-98 deleted the ProtocolMissedInPM branch August 25, 2023 10:42
@harsh-98
Copy link
Contributor Author

#634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants