-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: confirm block import notifier is closed properly (#1736)
* add TODOs to identify where block imported channel is handled * added comments for imported channels * create constructor for listeners * added close channel to defer in listen * move imported chan to block_notify * remove comments, lint * handle lint issues * replace imported channel map with sync.Map * fix mocks in listeners test * fix mock functions for new imported notification channel * fix deep source issues * add debugging printf * remove sync.Pool, and sync.Map * handle channel closing * add sleep before close * remove channel close * run go imported * defer importedLock unlock * wrap notifier channel in struct * store channel by interface{} key * update storage key for imported block listeners * refacter GetImportedBlockNotifierChannel arugments * GetImportedBlockNotifierChannel doesn't return error, fixed related test * remove un-needed comments * remove close for FinalisedChannel listener * added test for free imported channel * add mocks paths to .deepsource exclude_patterns
- Loading branch information
1 parent
a96f06a
commit ad2d85e
Showing
22 changed files
with
174 additions
and
255 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
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
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
79 changes: 37 additions & 42 deletions
79
dot/rpc/modules/mocks/BlockAPI.go → dot/rpc/modules/mocks/block_api.go
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
Oops, something went wrong.