This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters