summaryrefslogtreecommitdiff
path: root/imagestore
diff options
context:
space:
mode:
Diffstat (limited to 'imagestore')
-rw-r--r--imagestore/gcsstore.go2
-rw-r--r--imagestore/s3store.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/imagestore/gcsstore.go b/imagestore/gcsstore.go
index 798d4eb..67da3d7 100644
--- a/imagestore/gcsstore.go
+++ b/imagestore/gcsstore.go
@@ -32,7 +32,7 @@ func (this *GCSImageStore) Exists(obj *StoreObject) (bool, error) {
return true, nil
}
-func (this *GCSImageStore) Save(src string, obj *StoreObject) (*StoreObject, error) {
+func (this *GCSImageStore) Save(src string, obj *StoreObject, url string) (*StoreObject, error) {
data, err := ioutil.ReadFile(src)
if err != nil {
log.Printf("error on read file: %s", err)
diff --git a/imagestore/s3store.go b/imagestore/s3store.go
index e023fcc..c31a45f 100644
--- a/imagestore/s3store.go
+++ b/imagestore/s3store.go
@@ -31,7 +31,7 @@ func (this *S3ImageStore) Exists(obj *StoreObject) (bool, error) {
return (response.StatusCode == 200), nil
}
-func (this *S3ImageStore) Save(src string, obj *StoreObject) (*StoreObject, error) {
+func (this *S3ImageStore) Save(src string, obj *StoreObject, url string) (*StoreObject, error) {
bucket := this.client.Bucket(this.bucketName)
data, err := ioutil.ReadFile(src)