statesync/event: emit statesync start/end event #6700
statesync/event: emit statesync start/end event #6700cmwaters merged 27 commits intotendermint:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6700 +/- ##
==========================================
+ Coverage 62.31% 62.48% +0.17%
==========================================
Files 297 298 +1
Lines 39907 39962 +55
==========================================
+ Hits 24867 24972 +105
+ Misses 13280 13223 -57
- Partials 1760 1767 +7
|
alexanderbez
left a comment
There was a problem hiding this comment.
Left some preliminary comments. Great work @JayT106.
node/node.go
Outdated
| state, err := ssR.Sync(context.TODO(), config.DiscoveryTime) | ||
| if err != nil { | ||
| ssR.Logger.Error("state sync failed", "err", err) | ||
| ssR.GetLogger().Error("state sync failed", "err", err) |
There was a problem hiding this comment.
codesmell. Don't log here. The reactor should log on error.
There was a problem hiding this comment.
but it is a different goroutine, the caller might not be able to receive the return error.
|
@alexanderbez thanks for the feedback, I will change/remove the logs. |
48b78c8 to
d3f61ad
Compare
alexanderbez
left a comment
There was a problem hiding this comment.
Great changes so far @JayT106. Almost there!
cmwaters
left a comment
There was a problem hiding this comment.
Just a few syntax changes but otherwise good
0655ea0 to
019e081
Compare
|
@JayT106 - when you get a moment do you mind resolving the conflicts here. Then we can get this merged |
d728550 to
3370cd0
Compare
#6619 (comment)