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 <172697+naveensrinivasan@users.noreply.github.com>
- Loading branch information