-
Notifications
You must be signed in to change notification settings - Fork 198
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 some trie prints on dev #3660
Conversation
trie/trieStorageManager.go
Outdated
@@ -301,7 +301,10 @@ func (tsm *trieStorageManager) Get(key []byte) ([]byte, error) { | |||
return nil, ErrContextClosing | |||
} | |||
|
|||
val, _ := tsm.mainStorer.Get(key) | |||
val, err := tsm.mainStorer.Get(key) | |||
if checkIfClosingError(err) { |
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.
is this ok? Shouldn't have been !checkIfClosingError(err)
? Also, I would call this simply isClosingError
Here and on L317, L329
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.
If there is a closing err, it should not continue to search in other dbs, but return the err. Changed the func name.
Codecov Report
@@ Coverage Diff @@
## development #3660 +/- ##
===============================================
- Coverage 73.70% 73.68% -0.02%
===============================================
Files 587 587
Lines 76011 76030 +19
===============================================
+ Hits 56022 56024 +2
- Misses 15552 15562 +10
- Partials 4437 4444 +7
Continue to review full report at Codecov.
|
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.
System tests passed.
Do not snapshot after start in epoch on peer trie. (this was done for the user trie on a previous PR)