From 886b3abac17404910d89192fae74cdec47515702 Mon Sep 17 00:00:00 2001 From: buengese Date: Wed, 2 Dec 2020 01:27:35 +0100 Subject: [PATCH] compress: fix broken tests --- backend/compress/compress.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/compress/compress.go b/backend/compress/compress.go index 54b37129c..5cfd90324 100644 --- a/backend/compress/compress.go +++ b/backend/compress/compress.go @@ -12,7 +12,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "regexp" "strings" "time" @@ -472,7 +471,8 @@ func (f *Fs) putCompress(ctx context.Context, in io.Reader, src fs.ObjectInfo, o } // Transfer the data - o, err := operations.Rcat(ctx, f.Fs, makeDataName(src.Remote(), src.Size(), f.mode), ioutil.NopCloser(wrappedIn), src.ModTime(ctx)) + o, err := put(ctx, wrappedIn, f.wrapInfo(src, makeDataName(src.Remote(), src.Size(), f.mode), src.Size()), options...) + //o, err := operations.Rcat(ctx, f.Fs, makeDataName(src.Remote(), src.Size(), f.mode), ioutil.NopCloser(wrappedIn), src.ModTime(ctx)) if err != nil { if o != nil { removeErr := o.Remove(ctx)