Removed unused processQueue

This commit is contained in:
Simon Cambier
2022-11-06 12:44:19 +01:00
parent 38607837e8
commit 40f9df6a47
7 changed files with 4 additions and 27 deletions

View File

@@ -4,15 +4,9 @@ import { removeAnchors } from './tools/notes'
import { settings } from './settings'
import { SearchEngine } from './search/search-engine'
import { cacheManager } from './cache-manager'
import pLimit from 'p-limit'
import type { IndexedDocument } from './globals'
import { fileToIndexedDocument } from './file-loader'
/**
* Use this processing queue to handle all heavy work
*/
export const processQueue = pLimit(settings.backgroundProcesses)
/**
* Adds a file to the search index
* @param file