Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: don't break when unmarshalling empty peer.ID #64

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

volmedo
Copy link
Member

@volmedo volmedo commented Dec 17, 2024

It is expected for ProviderResult.Provider.ID to be empty in location, index and equals claims, as only the Addrs field of peer.AddrInfo is used in that case.

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
pkg/providerresults/providerresults.go 78.37% <100.00%> (+2.62%) ⬆️

@volmedo volmedo self-assigned this Dec 17, 2024
@volmedo volmedo merged commit db75f81 into main Dec 17, 2024
8 checks passed
@volmedo volmedo deleted the vic/fix/empty-peer-id branch December 17, 2024 12:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants