Closed achingbrain closed 5 months ago
It's not in this PR but maybe we'd want to allow some config:
I think we should leave the singleton to the most basic, unconfigurable, usecase and have users use createVerifiedFetch if they want to customize gateways, so that we don't have to muck around with error and edge-cases or confusion on the second options argument.
This might make things even easier to get started? It exports a singleton version of verified fetch that creates the backing Helia node on the first fetch access, transparent to the user.
It's not in this PR but maybe we'd want to allow some config:
Calling this twice with different gateways might result in an error.