-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Insert time interval based heartbeats in BHS store (#10682)
* Insert time interval based heartbeats in BHS store * Use BlockhashStoreSpec.HeartbeatPeriodTime in service delegation * Updated Job ORM test * Used Go timer and storeEarliest instead of headBroadcaster * Remove headBroadcaster from NewFeeder * Adding hearbeatPeriodTime to web view layer * Start heartbeat in delegate * Disable heartbeat by default * Test context * Get Test context * Refactor heartbeatPeriodTime (int32 seconds) to heartbeatPeriod time.Duration * Use custom timer to make it easy to test * Mock timer and add unit test for StartHeartbeats * Add db migration * Added unit test for sad path of StartHeartbeats * Minor fix * Integration test for bhs feeder heartbeat service * Refactoring to address comments * Renamed after merge * Refactoring based on PR comments * Added comments explaining blockhash verification * Minor fix --------- Co-authored-by: Sri Kidambi <[email protected]>
- Loading branch information
1 parent
6f7e6b8
commit 5b80ba6
Showing
24 changed files
with
812 additions
and
11 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.