Merge pull request #45 from ochaloup/starting-with-correct-url-at-client

BetterClient to use the first rpc url from list in the same way as CompoundRPCCaller
This commit is contained in:
Geoff Taylor 2022-02-17 16:04:04 +00:00 committed by GitHub
commit 5cb0fb0fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ class BetterClient:
if blockhash_cache_duration > 0:
blockhash_cache = BlockhashCache(blockhash_cache_duration)
client: Client = Client(
endpoint=cluster_url.rpc,
endpoint=cluster_urls[0].rpc,
commitment=commitment,
blockhash_cache=blockhash_cache,
)