Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix(cp-connector): Unsubscribe instead of disconnect from nats on cancel #7795

Merged
merged 2 commits into from May 19, 2022

Conversation

bacherfl
Copy link
Member

This PR changes the NatsEventSource of the cp-connector to unsubscribe from its subscribed topics when the context is cancelled. Previously it was disconnecting from nats altogether, which means that the service using this lib was not able to send out events (e.g. finished events). when it was still processing an event at the time of cancellation

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented May 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bacherfl bacherfl marked this pull request as ready for review May 19, 2022 06:24
@bacherfl bacherfl requested a review from a team as a code owner May 19, 2022 06:24
@bacherfl bacherfl merged commit 8854339 into master May 19, 2022
@bacherfl bacherfl deleted the fix/cp-connector-unsubscribe branch May 19, 2022 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants