Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Propagades timeout error #162

Merged
merged 2 commits into from
Mar 12, 2024
Merged

Propagades timeout error #162

merged 2 commits into from
Mar 12, 2024

Conversation

neithanmo
Copy link
Collaborator

@neithanmo neithanmo commented Mar 11, 2024

The enhancement shifts the timeout mechanism from the block producer to the consumer side. This change ensures that if the block producer stalls, the consumer, instead of indefinitely waiting on an empty channel, will encounter a timeout. This timeout triggers an error that is then easily propagated back to the main function. Consequently, this allows the entire indexing process to terminate gracefully, rather than abruptly due to a panic.

@neithanmo neithanmo requested a review from rllola March 11, 2024 22:41
@rllola rllola merged commit aecf92d into main Mar 12, 2024
6 checks passed
@rllola rllola deleted the feat/handle_error branch March 12, 2024 08:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants