Skip to content
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

feat: use ulong and topics and plumb through resumeAt subscription arguments #589

Merged
merged 5 commits into from
Nov 12, 2024

Conversation

malandis
Copy link
Contributor

@malandis malandis commented Nov 12, 2024

Changes TopicItem and TopicSystemEvent to store the sequence number/page as ulong. This removes a checked cast under the hood.

Also plumbs through resumeAtTopicSequenceNumber (page) to the subscription wrapper.

I tested these changes on both topics examples successfully without any changes on the example side.

Prefer using ulong for topic sequence number and page. Even though
this is not CLS compliant, both of these are represented as protobuf
`uint64`s.

The topic sequence page can grow unboundedly and we should retain
precision.
Previously we dropped the `resumeAtSequence...` values from the public
API. This commit plumbs through the values to the subscription
wrapper.
@malandis malandis requested a review from nand4011 November 12, 2024 01:05
nand4011
nand4011 previously approved these changes Nov 12, 2024
Copy link
Contributor

@nand4011 nand4011 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on the subscription request.

@malandis malandis merged commit dd6a6af into main Nov 12, 2024
8 checks passed
@malandis malandis deleted the feat/use-ulong-on-topics branch November 12, 2024 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants