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

treat no streams as an empty list #155

Merged
merged 1 commit into from
Apr 17, 2024
Merged

treat no streams as an empty list #155

merged 1 commit into from
Apr 17, 2024

Conversation

mmmries
Copy link
Collaborator

@mmmries mmmries commented Apr 17, 2024

After merging #152 I ran into a couple of failed CI runs like this

Screenshot 2024-04-17 at 1 24 46 PM

It turns out that the jetstream API sometimes returns "streams": null in their JSON response when there are no streams defined. This means that we end up getting back a nil value rather than a list. This would require client code to handle nils rather than being able to always treat the return as a possible-empty list.

This PR smooths over the rough edge to make sure we always return the list of streams as a list

@mmmries mmmries merged commit 68d368b into main Apr 17, 2024
3 checks passed
@mmmries mmmries deleted the avoid_nil_streams branch April 17, 2024 20:41
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

1 participant