-
Notifications
You must be signed in to change notification settings - Fork 841
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
RM-27055 added Queue methods: GetItems, GetItem, Search, Clear #163
base: master
Are you sure you want to change the base?
Conversation
RavenNumber of Findings: 0 |
+1 |
1 similar comment
+1 |
You'll need to pull in master to get the build to pass @nikepan |
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on HipChat: InfoSec Forum. |
Updated |
+1 |
+1 |
|
||
returnItems := make([]interface{}, 0, length) | ||
for _, item := range *items { | ||
if !checker(item) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to me it seems unintuitive that this would return objects that do not pass checker, I'd expect the opposite behavior
return nil, false | ||
} | ||
|
||
// GetItems returns items in this queue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment doesn't seem to define the exact behavior.
Some additional methods for working with queue.
Thats useful, when you need interact with queue items (send stop signal and clear queue)