Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Avoid rate GH rate limit when adding chains from registry #210

Merged
merged 2 commits into from
Oct 24, 2022

Conversation

boojamya
Copy link
Contributor

@boojamya boojamya commented Oct 7, 2022

Because we use the github client to pull data down from the chain-registry, it is easy to hit the github rate limit when adding many chains to your config.

Instead of using the github client, this PR "GETS" the raw json from the chain-registry.

It also cleans up the log out put.

Note: Lens will still use the github client when using the lens chains registry-list command

Copy link
Member

@jtieri jtieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just need to address the one comment I left then we can merge.

client/chain_registry/chain_info.go Outdated Show resolved Hide resolved
client/chain_registry/cosmos_github_registry.go Outdated Show resolved Hide resolved
Copy link
Member

@jtieri jtieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, good job Dan!

@boojamya boojamya merged commit 55b091a into main Oct 24, 2022
@boojamya boojamya deleted the dan/getchains branch October 24, 2022 21:58
agouin pushed a commit that referenced this pull request Dec 12, 2022
* avoid rate gh rate limit

* close response and improve readability
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants