Skip to content

Commit

Permalink
updated buffer length
Browse files Browse the repository at this point in the history
  • Loading branch information
kellemNegasi committed Jun 11, 2024
1 parent 810c382 commit 07577e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concurrent-processing/concurrent_extraction.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {

// runConcurrent takes the list of input documents and destination output directory and runs the extraction concurrently.
func runConcurrent(documents []string, outputDir string) {
res := make(chan map[string]string, 3)
res := make(chan map[string]string, len(documents))

err := concurrentExtraction(documents, res)
if err != nil {
Expand Down

0 comments on commit 07577e8

Please sign in to comment.