-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add ability for RPCs to be versioned/formatted #839
Conversation
This happens on marshalling and when the proxy base handles incomming messages. Subparams will be formated on retrieval when RPCs are retrieved due to them being stored as hashmaps instead of their actual RPC structs.
For method in JSONRPCMarsaller
Codecov Report
@@ Coverage Diff @@
## develop #839 +/- ##
============================================
+ Coverage 43.41% 43.8% +0.39%
- Complexity 3029 3038 +9
============================================
Files 382 383 +1
Lines 17461 17795 +334
Branches 1736 1750 +14
============================================
+ Hits 7580 7795 +215
- Misses 9563 9672 +109
- Partials 318 328 +10
Continue to review full report at Codecov.
|
this.rpcSpecVersion = rpcSpecVersion; | ||
lFileSize = lLength; | ||
iInitialCorrID = request.getCorrelationID(); | ||
mPauseLock = new Object(); |
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.
formatting
formatRequested = true; | ||
rpcSpecVersion = rpcVersion; | ||
//Should override this method when breaking changes are made to the RPC spec | ||
if(formatParams == true && store != null){ |
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.
AS keeps suggesting simplifying the condition like this
if(formatParams && store != null)
in StreamRPCPacketizer
This PR is ready for review.
Risk
This PR makes minor API changes.
Summary
RPC Struct now has a format method that can be used to properly format RPCs based on the rpc spec version
CLA