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

Idiomatic full queue check #189

Closed
kristinapathak opened this issue Mar 26, 2020 · 0 comments · Fixed by #190
Closed

Idiomatic full queue check #189

kristinapathak opened this issue Mar 26, 2020 · 0 comments · Fixed by #190
Assignees

Comments

@kristinapathak
Copy link
Contributor

The check here can be written differently, where if we can't immediately push the event onto the channel, we know the queue is full:
https://github.com/xmidt-org/caduceus/blob/master/outboundSender.go#L418

Here is an example of how this can be written in a more idiomatic way:
https://gobyexample.com/non-blocking-channel-operations

This was originally brought up by @joe94 .

@gargidb gargidb self-assigned this Mar 30, 2020
@gargidb gargidb linked a pull request Mar 30, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants