-
Notifications
You must be signed in to change notification settings - Fork 122
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
Full Node Streaming - reorder protobuf single length fields before variable length fields #2227
Conversation
WalkthroughThe changes in this pull request involve reordering properties within the Changes
Possibly related PRs
Suggested labels
Poem
Tip New featuresWalkthrough comment now includes:
Notes:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
protocol/x/clob/types/query.pb.go
is excluded by!**/*.pb.go
Files selected for processing (2)
- indexer/packages/v4-protos/src/codegen/dydxprotocol/clob/query.ts (6 hunks)
- proto/dydxprotocol/clob/query.proto (1 hunks)
Additional comments not posted (4)
proto/dydxprotocol/clob/query.proto (2)
185-197
: Confirm field additions and renumbering inStreamUpdate
.The addition of
block_height
andexec_mode
at the start of theStreamUpdate
message and the renumbering of existing fields within theoneof update_message
are noted. Ensure that these changes do not break backward compatibility or that all clients can handle these changes simultaneously.
208-213
: Confirm field reordering inStreamOrderbookUpdate
.The
snapshot
field has been moved to be the first field, and theupdates
field has been renumbered. Confirm that this reordering is consistent with the intended use of these fields in the system.indexer/packages/v4-protos/src/codegen/dydxprotocol/clob/query.ts (2)
301-304
: Confirm property reordering inStreamUpdate
.The properties
orderbookUpdate
,orderFill
,takerOrder
, andsubaccountUpdate
have been moved to the end of theStreamUpdate
interface. Confirm that this reordering is consistent with the changes in the protobuf definitions and does not adversely affect serialization or deserialization processes.Also applies to: 317-320
335-340
: Confirm property reordering inStreamOrderbookUpdate
.The
updates
property has been moved to follow thesnapshot
property. Confirm that this reordering is consistent with the changes in the protobuf definitions and does not adversely affect serialization or deserialization processes.Also applies to: 355-360
@Mergifyio backport release/protocol/v5.2.x |
✅ Backports have been created
|
…riable length fields (#2227)
…riable length fields (#2227)
…riable length fields (#2227)
…riable length fields (#2227)
…riable length fields (#2227)
Reorders the non-array based debug fields (snapshot, exec mode, block height) before the variable len fields (i.e updates). This does not break any behavior.
Summary by CodeRabbit
block_height
andexec_mode
to enhance theStreamUpdate
message structure.StreamUpdate
andStreamOrderbookUpdate
messages for better clarity and context.