-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
There was a problem hiding this 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} ---"); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool
No description provided.