Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/js/plugins/ipfs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,14 @@ export class IpfsPlugin extends Module<NoConfig> {
): Promise<TReturn> {
const defaultIpfsClient = createIpfsClient(this.env.provider);

if (!options) {
// Default behavior if no options are provided
if (!options?.fallbackProviders) {
// Default behavior if no fallback providers are provided
// Note that options.timeout is already set by getOptions
return await execSimple(
operation,
defaultIpfsClient,
this.config.provider,
0,
options?.timeout ?? 0,
func
);
}
Expand Down