Skip to content

feat: allow specifying the tokio runtime to use for the rpc tasks #20

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

Closed
wants to merge 1 commit into from

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Nov 28, 2024

Description

Allow specifying the tokio runtime to use for the rpc tasks

With this change, build() will panic if it is not called in a tokio context, unless you have provided a tokio_rt in the builder.

I don't like panicking in build, but it seems that this is idiomatic tokio code, so what can I do?

Breaking Changes

Notes & open questions

Needs a test!

Change checklist

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

Copy link

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

Last updated: 2024-11-28T16:01:44Z

@rklaehn rklaehn closed this Dec 10, 2024
@rklaehn rklaehn deleted the allow-providing-rt branch December 10, 2024 14:50
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.

1 participant