diff --git a/main.go b/main.go index 709a04a..f7f50b1 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ "github.com/sirupsen/logrus" ) -var queueForConcurrent = make(chan struct{}, 1111) +var queueForConcurrent = make(chan struct{}, 1250) var wg sync.WaitGroup var numberFiles int = 0 var corpusPath = flag.String("p", "", "Corpus path") @@ -78,7 +78,7 @@ size: file.Size(), } if *configurationFolder == "" { - if extension == ".pdf" { + if fileData.mimetype == "application/pdf" { wg.Add(1) go processPDF(&fileData) } else if extension == ".xml" && strings.Contains(fileData.mimetype, "text") {