-
Notifications
You must be signed in to change notification settings - Fork 30
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
Support wildcards streams in request-response stream client #381
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #381 +/- ##
==========================================
+ Coverage 84.22% 84.27% +0.04%
==========================================
Files 24 25 +1
Lines 10398 10452 +54
==========================================
+ Hits 8758 8808 +50
- Misses 1640 1644 +4 ☔ View full report in Codecov by Sentry. |
@@ -0,0 +1,138 @@ | |||
#ifndef AWS_MQTT_PRIVATE_REQUEST_RESPONSE_REQUEST_RESPONSE_SUBSCRIPTION_SET_H |
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.
I would love to see the "request_response" prefix removed somehow.
/* | ||
* Call specified callbacks for all stream and request operations with subscriptions matching a provided publish event. | ||
*/ | ||
AWS_MQTT_API void aws_mqtt_request_response_client_subscriptions_match( |
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.
Would rename this to something ala 'handle_incoming_publish' or similar
} | ||
|
||
if (!aws_byte_cursor_eq_c_str(&subscription_topic_filter_segment, "+") && | ||
!aws_byte_cursor_eq_ignore_case(&topic_segment, &subscription_topic_filter_segment)) { |
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.
I don't think case insensitive is right here
Issue #, if available:
Request-response stream needs support subscriptions to topics like
$aws/some-service/<EXECUTION_ID>/etc
, where<EXECUTION_ID>
changes for each message published by a service.Description of changes:
Implement a module allowing to match topic filter with wildcards and a topic where PUBLISH message was received.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.