diff --git a/backend/union/policy/policy.go b/backend/union/policy/policy.go index 57ec04ac9..b31f0749b 100644 --- a/backend/union/policy/policy.go +++ b/backend/union/policy/policy.go @@ -111,7 +111,7 @@ func findEntry(ctx context.Context, f fs.Fs, remote string) fs.DirEntry { return nil } // random modtime for root - randomNow := time.Unix(time.Now().Unix() - rand.Int63n(10000), 0) + randomNow := time.Unix(time.Now().Unix() - rand.Int63n(10000), 0) return fs.NewDir("", randomNow) } found := false diff --git a/backend/union/union.go b/backend/union/union.go index ebfd607ce..4265b5c6e 100644 --- a/backend/union/union.go +++ b/backend/union/union.go @@ -250,7 +250,7 @@ func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object, errs := make([]error, len(entries)) multithread(len(entries), func(i int){ u := entries[i].UpstreamFs() - o, ok := entries[i].(*upstream.Object); + o, ok := entries[i].(*upstream.Object); if !ok { errs[i] = fs.ErrorNotAFile return @@ -390,7 +390,7 @@ func (f *Fs) put(ctx context.Context, in io.Reader, src fs.ObjectInfo, stream bo } go func() { mw := io.MultiWriter(writers...) - io.Copy(mw, in) + io.Copy(mw, in) for _, bw := range writers { bw.(*bufio.Writer).Flush() } diff --git a/backend/union/upstream/upstream.go b/backend/union/upstream/upstream.go index db4e92765..03973ee1a 100644 --- a/backend/union/upstream/upstream.go +++ b/backend/union/upstream/upstream.go @@ -21,10 +21,10 @@ var ( ) const ( - unInitilized uint32 = iota - initilizing - normal - updating + unInitilized uint32 = iota + initilizing + normal + updating ) // Fs is a wrap of any fs and its configs