Skip to content

Commit

Permalink
Fix incorrectly setting peerId to the same value as name (#35)
Browse files Browse the repository at this point in the history
* fix incorrectly setting peerName in peerId property
* updating swift-otel resolved dependency
  • Loading branch information
heckj authored Apr 15, 2024
1 parent d39298d commit 6eec947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
"location" : "https://github.com/slashmo/swift-otel",
"state" : {
"branch" : "main",
"revision" : "0735233553ab0dfaa8a4051567cde95344941183"
"revision" : "0380acdfac239f3c77a819817501ebe2f6dd3a2e"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public actor PeerToPeerProvider: NetworkProvider {
)
if case let .bonjour(txtRecord) = browserResult.metadata,
let name = txtRecord[TXTRecordKeys.name],
let peerId = txtRecord[TXTRecordKeys.name]
let peerId = txtRecord[TXTRecordKeys.peer_id]
{
return AvailablePeer(peerId: peerId, endpoint: browserResult.endpoint, name: name)
}
Expand Down

0 comments on commit 6eec947

Please sign in to comment.