Merge pull request #247 from pmezard/remove-update-goroutine
upside_down: no need for a goroutine to enqueue AnalysisWork
This commit is contained in:
commit
e6d0fc8d95
@ -265,9 +265,7 @@ func (udc *UpsideDownCouch) Update(doc *document.Document) (err error) {
|
|||||||
resultChan := make(chan *index.AnalysisResult)
|
resultChan := make(chan *index.AnalysisResult)
|
||||||
aw := index.NewAnalysisWork(udc, doc, resultChan)
|
aw := index.NewAnalysisWork(udc, doc, resultChan)
|
||||||
// put the work on the queue
|
// put the work on the queue
|
||||||
go func() {
|
|
||||||
udc.analysisQueue.Queue(aw)
|
udc.analysisQueue.Queue(aw)
|
||||||
}()
|
|
||||||
|
|
||||||
// wait for the result
|
// wait for the result
|
||||||
result := <-resultChan
|
result := <-resultChan
|
||||||
|
Loading…
Reference in New Issue
Block a user