Tweak number of main explorer

This commit is contained in:
2016-01-17 20:47:38 +01:00
parent 15c40d70cc
commit 56ee04e768

View File

@@ -17,9 +17,9 @@ func Execute() error {
return fmt.Errorf("Missing mandatory .csv parameter") return fmt.Errorf("Missing mandatory .csv parameter")
} }
albums := make(chan *Album, 1000) albums := make(chan *Album, 10000)
errors := make(chan error, 10) errors := make(chan error, 10)
parsed := make(chan bool, 1000) parsed := make(chan bool, 10000)
cached := make(chan bool, 1000) cached := make(chan bool, 1000)
cacheBase, err := xdg.Cache.Ensure(filepath.Join("org.satellite.satbd", "test")) cacheBase, err := xdg.Cache.Ensure(filepath.Join("org.satellite.satbd", "test"))
if err != nil { if err != nil {
@@ -56,7 +56,7 @@ func Execute() error {
parsed <- true parsed <- true
albums <- a albums <- a
} }
log.Printf("Done parsing albums in %s", time.Since(start)) fmt.Printf("Done parsing albums in %s\n\n", time.Since(start))
}() }()
go func() { go func() {
@@ -72,7 +72,7 @@ func Execute() error {
errors <- err errors <- err
} }
} }
log.Printf("DONE caching in %s", time.Since(start)) fmt.Printf("DONE caching in %s\n\n", time.Since(start))
}() }()
pCount := 0 pCount := 0