-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the search to be concurrent
- Add support for querying multiple sources concurrently - Return the combined results from all sources - If any errors occur, return the first error and discard the results [source/multi.go] - Add `sync.WaitGroup` for waiting on all source queries to finish - Add `errs` and `resChan` channels for collecting errors and results from sources - Add goroutines for querying sources, collecting errors, and collecting results - If any errors occurred, return the first error and discard the results - Return the combined results from all sources Signed-off-by: naveensrinivasan <[email protected]>
- Loading branch information
1 parent
40c7ed5
commit 002d897
Showing
1 changed file
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters