Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

token list provider fallback #367

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
revert unintended throw
  • Loading branch information
jsy1218 committed Sep 13, 2023
commit 2d9bed063ccba53a62c58263c0c9983839aa3efc
2 changes: 1 addition & 1 deletion lib/handlers/router-entities/aws-token-list-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class AWSTokenListProvider extends CachingTokenListProvider {

TOKEN_LIST_CACHE.set<TokenList>(tokenListURI, tokenList)

throw new Error('you must failll')
return new CachingTokenListProvider(chainId, tokenList, new NodeJSCache(tokenCache))
} catch (err) {
log.error({ err }, `Failed to get tokenLists from s3.`)
return super.fromTokenListURI(chainId, tokenListURI, new NodeJSCache(tokenCache))
Expand Down
Loading