Closed bretambrose closed 2 months ago
Attention: Patch coverage is 95.96413%
with 9 lines
in your changes are missing coverage. Please review.
Project coverage is 83.19%. Comparing base (
c565837
) to head (7074a0d
).
Files | Patch % | Lines |
---|---|---|
source/request-response/subscription_manager.c | 96.71% | 7 Missing :warning: |
source/request-response/protocol_adapter.c | 80.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Just a random thought but would there be any value in adding an 'unsubscribe to all' function that can be called prior to destruction? The unsubscribes would be sent to the mqtt client to be processed (or not processed if the client is also being destroyed) to free up whatever subscriptions the RR had. Would be fire and forget with no wait on acks. This may be useful in a use-case where someone is creating and destroying multiple rr clients over the course of a connection with different names.
Just a random thought but would there be any value in adding an 'unsubscribe to all' function that can be called prior to destruction? The unsubscribes would be sent to the mqtt client to be processed (or not processed if the client is also being destroyed) to free up whatever subscriptions the RR had. Would be fire and forget with no wait on acks. This may be useful in a use-case where someone is creating and destroying multiple rr clients over the course of a connection with different names.
That's what aws_rr_subscription_manager_clean_up
does
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.