Skip to content

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Oct 8, 2025

Description

Remove endpoint from protocol constructor.

It was only needed for creating tickets, which is used almost nowhere. To serve a protocol you just need the store, nothing else.

If you want to create a BlobTicket, just do it manually.

Breaking Changes

BlobsProtocol::new now takes just store and events
BlobsProtocol::endpoint is removed
BlobsProtocol::ticket is removed
api::TempTag::inner is removed
api::TempTag::hash returns a value instead of a reference
api::TempTag::format returns a value instead of a reference
api::TempTag::hash_and_format returns a value instead of a reference

Notes & open questions

None

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

It was only needed for creating tickets, which is used almost nowhere.

If you want to create a BlobTicket, just do it manually.
Copy link

github-actions bot commented Oct 8, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/181/docs/iroh_blobs/

Last updated: 2025-10-08T14:34:00Z

@n0bot n0bot bot added this to iroh Oct 8, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Oct 8, 2025
@dignifiedquire
Copy link
Collaborator

nice improvement

@rklaehn rklaehn changed the title Remove endpoint from protocol constructor. feat: Remove endpoint from protocol constructor. Oct 8, 2025
- rand update
- .initialized().await removal
@rklaehn rklaehn merged commit 33f1582 into main Oct 8, 2025
42 of 45 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Oct 8, 2025
@rklaehn rklaehn deleted the remove-endpoint-from-protocol branch October 8, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants