forked from ava-labs/subnet-evm
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makerbook storage and save snapshot to file (#160)
* Store makerbook and snapshot to file * Update default paths * Save snapshots only to the file * minor change * Fix log * Revert "Save snapshots only to the file" This reverts commit 77e92ea. * Save snapshot only to file * Fix log again * Load snapshot from file first * Return error when file path is not set * Review fixes * Review changes * tiny changes for more idiomatic code * use channels to queue messages to write to file * stop closing the channel within consumer logic when shutdown signal comes * fix ineffectual assignment lint error * fix order struct * Add missing Id set --------- Co-authored-by: wallydrag <debashish.ghatak@gmail.com>
- Loading branch information
Showing
14 changed files
with
201 additions
and
35 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package orderbook | ||
|
||
const ( | ||
HandleChainAcceptedEventPanicMessage = "panic while processing chainAcceptedEvent" | ||
HandleChainAcceptedLogsPanicMessage = "panic while processing chainAcceptedLogs" | ||
HandleHubbleFeedLogsPanicMessage = "panic while processing hubbleFeedLogs" | ||
RunMatchingPipelinePanicMessage = "panic while running matching pipeline" | ||
RunSanitaryPipelinePanicMessage = "panic while running sanitary pipeline" | ||
HandleChainAcceptedEventPanicMessage = "panic while processing chainAcceptedEvent" | ||
HandleChainAcceptedLogsPanicMessage = "panic while processing chainAcceptedLogs" | ||
HandleHubbleFeedLogsPanicMessage = "panic while processing hubbleFeedLogs" | ||
RunMatchingPipelinePanicMessage = "panic while running matching pipeline" | ||
RunSanitaryPipelinePanicMessage = "panic while running sanitary pipeline" | ||
MakerBookFileWriteChannelPanicMessage = "panic while sending to makerbook file write channel" | ||
) |
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.