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

refactor: remove .Empty #274

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

MarcoPolo
Copy link
Contributor

prefer the simpler len check for Multiaddr and == nil for *Component.

This helps with backward compatibility with v0.14. For example, this change: https://github.com/filecoin-project/lotus/pull/12912/files#diff-dd6a7924e7591cf2ed56af793a333f61f17a4a472d0ea542334ff841f5918c0dL63 would no longer be required.

prefer the simpler `len` check for Multiaddr and `== nil` for
`*Component`.
@MarcoPolo MarcoPolo requested a review from sukunrt February 22, 2025 02:43
@MarcoPolo MarcoPolo merged commit 32570c5 into marco/AppendComponent Feb 24, 2025
7 checks passed
MarcoPolo added a commit that referenced this pull request Feb 24, 2025
prefer the simpler `len` check for Multiaddr and `== nil` for
`*Component`.
MarcoPolo added a commit that referenced this pull request Feb 24, 2025
…ent (#272)

* Backwards compatible Encapsulate/Decapsulate/Join

* remove EncapsulateC

* feat: Add Multiaddr.AppendComponent

* remove .Empty (#274)

prefer the simpler `len` check for Multiaddr and `== nil` for
`*Component`.

* export AsMultiaddrer interface

* rename AsMultiaddr to Multiaddr

Export Multiaddrer interface
@p-shahi p-shahi mentioned this pull request Feb 26, 2025
9 tasks
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.

2 participants