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

observation: handle state when the resource observation is not supported #258

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

jkralik
Copy link
Member

@jkralik jkralik commented Nov 22, 2021

when the client receives a notification without observing option, it
means that the resource doesn't support the observation.

  • added a call to check if the observation is canceled obs.Canceled
  • automatically clean up observation, so users don't need to call
    obs.Cancel

@jkralik jkralik force-pushed the jkralik/fix/observationNotSupported branch 8 times, most recently from 44b7300 to 5efd3ac Compare November 22, 2021 20:18
when the client receives a notification without observing option, it
means that the resource doesn't support the observation.

- added a call to check if the observation is canceled `obs.Canceled`
- automatically clean up observation, so users don't need to call
`obs.Cancel`
@jkralik jkralik force-pushed the jkralik/fix/observationNotSupported branch from 5efd3ac to ceef619 Compare November 22, 2021 20:26
@sonarcloud
Copy link

sonarcloud bot commented Nov 22, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

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

No Coverage information No Coverage information
74.1% 74.1% Duplication

@jkralik jkralik marked this pull request as ready for review November 22, 2021 20:44
@jkralik jkralik merged commit d32a1fa into master Nov 23, 2021
@jkralik jkralik deleted the jkralik/fix/observationNotSupported branch November 23, 2021 14:17
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.

None yet

2 participants