Skip to content

Conversation

@danwritecode
Copy link

Hey All, for xread_map and xreadgroup_map, these methods currently return a Result for situations where a stream has no records and you get an empty or NULL response.

I think a pragmatic change here would be to check the Value returned from xread and return None in the event that the Value is null instead of returning an Error result.

It's totally expected/reasonable that a stream will be empty at any point and time and it's important to know when there are no records available for processing vs when an actual error occurs.

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.

1 participant