diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-10 20:39:00 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-10 20:39:00 -0400 |
| commit | 49a2d76d2be793f9aeddd9997ae8abba4a7f03f2 (patch) | |
| tree | 1e831080aed8ba488706ba3484c01dcd5489cbb6 /pkg/index | |
| parent | 92de2b63b6bd0642b92e7ca1c6110bab7f3a2e6b (diff) | |
Fix approximate queries on nullable categories
Diffstat (limited to 'pkg/index')
| -rw-r--r-- | pkg/index/index.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/index/index.go b/pkg/index/index.go index 0c014ee..3b34781 100644 --- a/pkg/index/index.go +++ b/pkg/index/index.go @@ -253,7 +253,7 @@ func workerTraverse(wg *sync.WaitGroup, ignoreHidden bool, visitQueue chan InfoP } func (idx Index) Traverse(numWorkers uint, ignoreHidden bool) []string { - if numWorkers <= 1 { + if numWorkers == 0 { panic(fmt.Sprint("Invalid number of workers: ", numWorkers)) } docs := make([]string, 0) |
