Add back concurrent parsing

This commit is contained in:
DataHoarder 2022-02-20 20:57:30 +01:00
parent 51c024f500
commit 7afba40de9

View file

@ -322,7 +322,7 @@ func processIndexDirectory(filePath, indexPath, kind string, wg *sync.WaitGroup)
if path.Ext(e.Name()) == ".json" {
for _, v := range parseCategoryPageIndex(path.Join(indexPath, e.Name())) {
wg.Add(1)
func(entry *albumEntry) {
go func(entry *albumEntry) {
defer wg.Done()
contents, err := ioutil.ReadFile(path.Join(filePath, "pages", fmt.Sprintf("%d.wiki", entry.Id)))