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

internal(jetstream): direct consumer #154

Merged
merged 6 commits into from
Dec 11, 2024
Merged

internal(jetstream): direct consumer #154

merged 6 commits into from
Dec 11, 2024

Conversation

aricart
Copy link
Member

@aricart aricart commented Nov 22, 2024

internal implementation for a direct consumer.

@aricart aricart marked this pull request as draft November 22, 2024 14:41
@aricart aricart force-pushed the direct-oc branch 2 times, most recently from 8881dd5 to 94875c2 Compare November 23, 2024 00:53
@aricart aricart changed the title Direct oc Direct Consumer Nov 23, 2024
@aricart aricart marked this pull request as ready for review December 5, 2024 17:54
Copy link

@scottf scottf left a comment

Choose a reason for hiding this comment

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

LGTM

@aricart aricart changed the title Direct Consumer internal(jetstream): direct consumer Dec 5, 2024
Signed-off-by: Alberto Ricart <[email protected]>
Removed the unnecessary error parameter from the callback function in the get method to streamline the code. Corrected the handling of errors by ensuring the check is done on the 'done' object directly, improving code clarity and maintainability.

Signed-off-by: Alberto Ricart <[email protected]>
Implement 'consume'. Update the direct consumer implementation to include status notifications, debug capability, and corrections on DirectMessage to pending messages to account for the end-of-messages signal from the server.

Signed-off-by: Alberto Ricart <[email protected]>
Signed-off-by: Alberto Ricart <[email protected]>
Signed-off-by: Alberto Ricart <[email protected]>
Introduce server version checks for direct API functionality to ensure compatibility with server requirements. Enhance `direct_consumer_test` with additional debug and status tracking logic. These changes improve test robustness and developer insight during testing. Fixed an issue where underling error was being thrown instead of rejecting.

Signed-off-by: Alberto Ricart <[email protected]>
@aricart aricart merged commit 1dc4fe9 into main Dec 11, 2024
28 checks passed
@aricart aricart deleted the direct-oc branch December 11, 2024 16:23
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