iroh
iroh copied to clipboard
Allow to pass custom resolvers
The main change is to switch iroh-gateway/src/client.rs#Client
to be:
pub struct Client<T: ContentLoader>
and to sprinkle the generic and
other needed bounds where needed.
iroh-one/src/content_loader.rs
showcases a custom content loader. For now it's
similar to the regular one without the gateway racing implementation.
This is to fix https://github.com/n0-computer/beetle/issues/194
note: all tests are passing locally on a Mac
Rebased to current tree. ping @dignifiedquire & @Arqu
@fabricedesre just noticed the branch is out of date. Can you rebase and we can merge.
@fabricedesre just noticed the branch is out of date. Can you rebase and we can merge.
done!