diff options
author | Nick White <git@njw.name> | 2021-08-02 10:45:53 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-08-02 10:45:53 +0100 |
commit | 4b7a4bd1b87d1dbba283e577aa03ce7e390d85d8 (patch) | |
tree | e5e7e55763cfbfd74e651a4ba5bea5b7394a93a9 /cmd | |
parent | 5310a5e77e945debdc7bd6f149ba87fab13902db (diff) |
internal/pipeline: Add test (incomplete but working) for UploadImages
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/booktopipeline/main.go | 2 | ||||
-rw-r--r-- | cmd/rescribe/main.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/booktopipeline/main.go b/cmd/booktopipeline/main.go index b4f4d99..1b16cee 100644 --- a/cmd/booktopipeline/main.go +++ b/cmd/booktopipeline/main.go @@ -112,7 +112,7 @@ func main() { } verboselog.Println("Uploading all images are valid in", bookdir) - err = pipeline.UploadImages(bookdir, bookname, conn) + err = pipeline.UploadImages(bookdir, bookname, conn, conn.WIPStorageId()) if err != nil { log.Fatalln(err) } diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 251c333..e249138 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -362,7 +362,7 @@ func uploadbook(dir string, name string, conn Pipeliner) error { if err != nil { return fmt.Errorf("Error with images in %s: %v", dir, err) } - err = pipeline.UploadImages(dir, name, conn) + err = pipeline.UploadImages(dir, name, conn, conn.WIPStorageId()) if err != nil { return fmt.Errorf("Error saving images to process from %s: %v", dir, err) } |