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

test: shuffle archive URLs #9472

Merged
merged 10 commits into from
Dec 3, 2024
Merged

test: shuffle archive URLs #9472

merged 10 commits into from
Dec 3, 2024

Conversation

DaniPopes
Copy link
Member

No description provided.

@DaniPopes DaniPopes enabled auto-merge (squash) December 3, 2024 18:33
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

great,

(false, true) => format!("https://{full}.infura.io/v3/{key}"),
(true, true) => format!("wss://{full}.infura.io/ws/v3/{key}"),
(false, false) => format!("https://{full}.g.alchemy.com/v2/{key}"),
(true, false) => format!("wss://{full}.g.alchemy.com/v2/{key}"),
}
};
eprintln!("--- next_url(is_ws={is_ws}, chain={chain:?}) = {url} ---");
Copy link
Member

Choose a reason for hiding this comment

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

since we're only using this in tests, this seems helpful

format!("https://eth-mainnet.g.alchemy.com/v2/{}", next(&ALCHEMY_KEYS))
urls.choose_weighted(&mut rand::thread_rng(), |url| {
if url.contains("reth") {
2usize
Copy link
Member

Choose a reason for hiding this comment

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

cool

@DaniPopes DaniPopes merged commit f9d8663 into master Dec 3, 2024
21 checks passed
@DaniPopes DaniPopes deleted the dani/test-urls branch December 3, 2024 20:16
@grandizzy grandizzy added the L-ignore Log: ignore PR in changelog label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L-ignore Log: ignore PR in changelog
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants