summaryrefslogtreecommitdiff
path: root/src/pool-import
diff options
context:
space:
mode:
Diffstat (limited to 'src/pool-import')
-rw-r--r--src/pool-import/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pool-import/main.go b/src/pool-import/main.go
index 7dd7851..eb02756 100644
--- a/src/pool-import/main.go
+++ b/src/pool-import/main.go
@@ -27,6 +27,7 @@ import (
"net/http"
"os"
"sort"
+ "time"
"code.helsinki.at/rhrd-go/rddb"
"code.helsinki.at/rhrd-go/rhimport"
@@ -68,7 +69,7 @@ func HandleCart(cart uint, cut uint, artist, album, title, dstgroup string, sess
return
}
- s.Run(0)
+ s.Run(10 * time.Minute)
res := <-donechan
if res.ResponseCode != http.StatusOK {
@@ -97,7 +98,8 @@ func main() {
defer newdb.Cleanup()
stdlog := log.New(os.Stderr, "[std] ", log.LstdFlags)
- dbglog := log.New(os.Stderr, "[dbg] ", log.LstdFlags)
+ // dbglog := log.New(os.Stderr, "[dbg] ", log.LstdFlags)
+ var dbglog *log.Logger
sessions, err := rhimport.NewSessionStore(conf, newdb.GetInterface(), stdlog, dbglog)
if err != nil {
log.Fatal("Error initializing Session Store:", err)