Skip to content

fix: joining blob path to PDP public URL#182

Merged
alanshaw merged 2 commits intofix/join-http-path-to-multiaddrfrom
fix/blob-path-join-to-ma
Aug 12, 2025
Merged

fix: joining blob path to PDP public URL#182
alanshaw merged 2 commits intofix/join-http-path-to-multiaddrfrom
fix/blob-path-join-to-ma

Conversation

@alanshaw
Copy link
Copy Markdown
Member

Note, targets: #180

  • Moves joinHTTPPath to a package that can be used everywhere.
  • Uses it to join the PDP piece/{blobCID} to the public curio multiaddr.
  • Removes the TrimSuffix from #176 as it is not needed.

@alanshaw alanshaw requested a review from volmedo August 11, 2025 11:08
@alanshaw alanshaw requested a review from frrist as a code owner August 11, 2025 11:08
Comment thread pkg/mahttp/joinpath.go Outdated
@@ -0,0 +1,46 @@
package mahttp
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How would we feel about putting this in lib/ instead of it's own mahttp package?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There is not a lib/ directory...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Whoops, you're right one doesn't exist yet. Would you mind creating one and moving this logic there? Over in #169 I have done something similar - defined a lib/ dir and started moving common logic over to it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@alanshaw alanshaw merged commit b92f469 into fix/join-http-path-to-multiaddr Aug 12, 2025
6 checks passed
@alanshaw alanshaw deleted the fix/blob-path-join-to-ma branch August 12, 2025 11:59
@frrist frrist added this to the v0.0.13 release milestone Aug 26, 2025
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.

3 participants