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

How to set a timeout for Web3Client? #218

Open
rodrigoschaefer opened this issue Nov 16, 2021 · 1 comment
Open

How to set a timeout for Web3Client? #218

rodrigoschaefer opened this issue Nov 16, 2021 · 1 comment

Comments

@rodrigoschaefer
Copy link

Client httpClient = Client();
Web3Client ethClient = Web3Client(rpcUrl, httpClient);

If i turn Ganache off, ethClient.call takes a huge ammount of time to return. Is there a way to set a timeout?

@juampiq6
Copy link

juampiq6 commented Dec 8, 2021

try https://pub.dev/packages/http_retry it has a timeout parameter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants