plt-228 fixed static check on app and evmrpc package#3154
Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3154 +/- ##
==========================================
- Coverage 58.75% 58.73% -0.02%
==========================================
Files 2095 2095
Lines 173551 173484 -67
==========================================
- Hits 101965 101903 -62
+ Misses 62465 62464 -1
+ Partials 9121 9117 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
mojtaba-esk
left a comment
There was a problem hiding this comment.
Great work Amir!
I would add the static check (or equivalent) to the CI so nothing regresses.
Also left some comments, no major blockers.
| } | ||
|
|
||
| // stopWS disables JSON-RPC over WebSocket and also stops the server if it only serves WebSocket. | ||
| func (h *HTTPServer) stopWS() { |
There was a problem hiding this comment.
[nit] stopWs encodes a real lifecycle rule: disable WS, then stop the whole server if HTTP RPC is also off. Today nothing calls it, so removing it is correct, but it is the kinda helper that might be reintroduced when someone wires dynamic enable/disable. Not a blocker; just worth a one-line comment in the PR or a pointer to disableWS / shutdown path so future authors do not duplicate locking incorrectly.
There was a problem hiding this comment.
Thanks for feedback. I will bring this method back with a comment to linter to not show as warning.
| return txResults | ||
| } | ||
|
|
||
| type ChannelResult struct { |
There was a problem hiding this comment.
Safe to remove if unused, but Giga work is ongoing, so someone might have planned to use it. Worth a quick checked with the team that works on Giga? to be 100% sure about it. or someone from their team to have a look at this line.
There was a problem hiding this comment.
I asked in the consensus-eng channel and haven't heard any complaints. Also this code seems to be from 2022 so I doubt it is being used for anything recent.
There was a problem hiding this comment.
#3151
This is the current attempt to plug App into Autobahn, so I don't think we use ChannelResult
Thanks for feedback Mojtaba! I will work on the comments you mentioned. |
* main: plt-228 fixed static check on app and evmrpc package (#3154) flatkv cache (#3027) Make cryptosim state store backend configurable + No Op Wrapper + Read Disable Config (#3145) Add warning message for IAVL deprecation (#3159) Change default min valid per window to zero (#3157) support for starting autobahn from non-zero global block (#3136) Fix upgrade list comparison to respect semver (#3153)
Describe your changes and provide context
Fixing some of the static check issues reported by
staticcheck -tags=codeanalysis ./..., in packages app and evmrpc:Did not make changes for
evmrpc/subscribedeprecation issue as it would require more refactoring.