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

Use validator in SearchValue #9

Merged
merged 5 commits into from
Sep 25, 2018
Merged

Use validator in SearchValue #9

merged 5 commits into from
Sep 25, 2018

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Sep 25, 2018

This is actually a small patch, bulk of the changes is caused by changing the Parallel and Tiered types.

Only real changes are in parallel.go:

  • Properly closing channel in search
  • Using validator in SearchValue
  • Not re-emitting already seen values

@ghost ghost assigned magik6k Sep 25, 2018
@ghost ghost added the status/in-progress In progress label Sep 25, 2018
@magik6k magik6k mentioned this pull request Sep 25, 2018
4 tasks
parallel.go Show resolved Hide resolved
parallel.go Outdated

for v := range resCh {
if best == nil {
if r.Validator.Validate(key, v) != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, we should be able to rely on the underlying router. Given that we don't validate anywhere else, I'm thinking we should drop this (for consistency). Thoughts?

@Stebalien Stebalien merged commit 9c79a5f into master Sep 25, 2018
@ghost ghost removed the status/in-progress In progress label Sep 25, 2018
@Stebalien Stebalien deleted the fix/search-validate branch September 26, 2018 00:45
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.

2 participants