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

suggestions for multiple rpc fetch #191

Closed

Conversation

turbocrime
Copy link
Contributor

n/t

createGrpcWebTransport({ baseUrl: grpcEndpoint }),
);
const latestBlockHeight = await tendermintClient
.getStatus({}, { signal: AbortSignal.timeout(timeoutMs) })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

you could also use timeoutMs directly

Suggested change
.getStatus({}, { signal: AbortSignal.timeout(timeoutMs) })
.getStatus({}, { timeoutMs })

this is fully unfounded, but i wonder if using the timeoutMs option might actually wait for the request to connect before starting the timer. a signal will definitely abort the request without any conditions.

@TalDerei
Copy link
Contributor

TalDerei commented Sep 6, 2024

thanks for the suggestions, opted for a more minimal diff

@TalDerei TalDerei closed this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants