Add back concurrent parsing
This commit is contained in:
parent
51c024f500
commit
7afba40de9
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue