ourzora / offchain

NFT Metadata made easy
MIT License
109 stars 27 forks source link

Add Async to MetadataPipeline #83

Closed IsabellaSmallcombe closed 1 year ago

IsabellaSmallcombe commented 1 year ago

Description

Pr to add async_fetch_token_metadata to MetadataPipeline andgen_fetch_content to MetadataFetcher. Also updates Adapters and Fetchers to handle async.

Motivation and Context

With large amounts of metadata requests the Offchain MetadataPipeline can be slow as it handles every request sequentially. This pr will introduce the option to make async requests to reduce the overall time it takes to process large amounts of metadata requests.

This pr adds:

How has this been tested?

Screenshots (if appropriate):

Types of changes

Checklist: