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

swarm: change maps with multiaddress keys to use strings #2284

Merged
merged 3 commits into from
May 12, 2023

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented May 11, 2023

fixes: #2283

string(addr.Bytes()) is already used in peerstore. #2283

Fixes one more instance in routed.go https://github.com/libp2p/go-libp2p/blob/master/p2p/host/routed/routed.go#L122

@sukunrt sukunrt force-pushed the fix-addr-map branch 2 times, most recently from 5d04613 to 417b8cc Compare May 11, 2023 12:03
@marten-seemann
Copy link
Contributor

The new test case seems flaky:

=== RUN   TestDialWorkerLoopAddrDedup
      dial_worker_test.go:409: did expect one connection. got 0
  --- FAIL: TestDialWorkerLoopAddrDedup (3.00s)

@sukunrt
Copy link
Member Author

sukunrt commented May 12, 2023

@marten-seemann
I've fixed the test

@marten-seemann marten-seemann merged commit 64be725 into libp2p:master May 12, 2023
MarcoPolo pushed a commit that referenced this pull request May 30, 2023
* swarm: change maps with multiaddress keys to use strings

* fix test

* fix more flakiness
marten-seemann pushed a commit that referenced this pull request May 30, 2023
* swarm: change maps with multiaddress keys to use strings

* fix test

* fix more flakiness
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.

swarm: duplicate tracking in dial worker loop doesn't work
2 participants