iroh icon indicating copy to clipboard operation
iroh copied to clipboard

Allow to pass custom resolvers

Open fabricedesre opened this issue 1 year ago • 2 comments

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.

fabricedesre avatar Sep 01 '22 22:09 fabricedesre

This is to fix https://github.com/n0-computer/beetle/issues/194

fabricedesre avatar Sep 01 '22 22:09 fabricedesre

note: all tests are passing locally on a Mac

fabricedesre avatar Sep 01 '22 22:09 fabricedesre

Rebased to current tree. ping @dignifiedquire & @Arqu

fabricedesre avatar Sep 17 '22 00:09 fabricedesre

@fabricedesre just noticed the branch is out of date. Can you rebase and we can merge.

Arqu avatar Sep 27 '22 12:09 Arqu

@fabricedesre just noticed the branch is out of date. Can you rebase and we can merge.

done!

fabricedesre avatar Sep 27 '22 16:09 fabricedesre