-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: confirm block import notifier is closed properly #1736
Merged
Merged
Changes from 2 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
0a59cb3
add TODOs to identify where block imported channel is handled
edwardmack a8cffd8
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 30338f7
added comments for imported channels
edwardmack 6ed9d63
create constructor for listeners
edwardmack 0bc1f97
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 2ae9572
added close channel to defer in listen
edwardmack 0f95d68
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 2b16fa6
move imported chan to block_notify
edwardmack 7f10eec
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 5f1c2a6
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 2b512b2
remove comments, lint
edwardmack e3bd220
handle lint issues
edwardmack fd6d7cc
replace imported channel map with sync.Map
edwardmack 125b68a
fix mocks in listeners test
edwardmack ee0fc7b
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 6ca1a8b
fix mock functions for new imported notification channel
edwardmack d3eaa06
fix deep source issues
edwardmack 41bb429
add debugging printf
edwardmack f0f76f1
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 0164305
remove sync.Pool, and sync.Map
edwardmack b7f658f
handle channel closing
edwardmack 74f094d
add sleep before close
edwardmack 8a49ae7
remove channel close
edwardmack 35180df
run go imported
edwardmack faf2664
defer importedLock unlock
edwardmack db397cd
wrap notifier channel in struct
edwardmack 4b7d341
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack d5d0d57
store channel by interface{} key
edwardmack f72e744
Merge branch 'ed/fix_send_on_closed_channel' of https://github.com/Ch…
edwardmack a478d5c
update storage key for imported block listeners
edwardmack d5754d9
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 8b8066c
refacter GetImportedBlockNotifierChannel arugments
edwardmack 1acfba7
GetImportedBlockNotifierChannel doesn't return error, fixed related test
edwardmack ce706cc
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 515391d
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 8ad895c
remove un-needed comments
edwardmack 6b46fcd
Merge branch 'development' into ed/fix_send_on_closed_channel
edwardmack 6bfb77d
remove close for FinalisedChannel listener
edwardmack 48f6db0
added test for free imported channel
edwardmack 8b30110
add mocks paths to .deepsource exclude_patterns
edwardmack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this function do? looks like it just logs some struct and returns nil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this is here...