Skip to content

Commit

Permalink
searcher: make results channel unbuffered
Browse files Browse the repository at this point in the history
  • Loading branch information
sahildua2305 committed Dec 30, 2017
1 parent 8d51b7d commit afb8e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searcher/searcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func MakeAll(cfg *config.Config) (map[string]*Searcher, map[string]error, error)
lim := makeLimiter(cfg.MaxConcurrentIndexers)

// Channel to receive the results from newSearcherConcurrent function.
resultCh := make(chan searcherResult, 1)
resultCh := make(chan searcherResult)

// Start new searchers for all repos in different go routines while
// respecting cfg.MaxConcurrentIndexers.
Expand Down

0 comments on commit afb8e5d

Please sign in to comment.