diff options
Diffstat (limited to 'src/pool-import/main.go')
-rw-r--r-- | src/pool-import/main.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pool-import/main.go b/src/pool-import/main.go index 8e68d15..cd52c2f 100644 --- a/src/pool-import/main.go +++ b/src/pool-import/main.go @@ -80,22 +80,22 @@ func main() { stdlog.Printf("*** will import into group '%s'", group) stdlog.Println("***************************************************************") - carts, err := db.GetInterface().GetPoolCartList(rddb.PoolListEntry{Group: group}) - if err != nil { - stdlog.Fatal("Error fetching Pool Carts:", err) - } - - stdlog.Printf("got %d carts from pool:", len(carts)) - for _, cart := range carts { - stdlog.Printf(" %d: '%s' | %s / %s / %s)", cart.Number, cart.UserDefined, cart.Artist, cart.Album, cart.Title) - } - go func() { defer func() { C <- syscall.SIGTERM }() - files, err := callFileHasher() + carts, err := db.GetInterface().GetPoolCartList(rddb.PoolListEntry{Group: group}) + if err != nil { + stdlog.Fatal("Error fetching Pool Carts:", err) + } + + stdlog.Printf("got %d carts from pool:", len(carts)) + for _, cart := range carts { + stdlog.Printf(" %d: '%s' | %s / %s / %s)", cart.Number, cart.UserDefined, cart.Artist, cart.Album, cart.Title) + } + + files, err := callFileHasher(group) if err != nil { stdlog.Fatal("Calling file hasher failed:", err) } |