1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-04 09:33:36 +00:00

union: fix indent

This commit is contained in:
Max Sum
2019-12-03 13:12:15 +08:00
committed by Nick Craig-Wood
parent 5720501b19
commit 05666e6e51
3 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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()
}

View File

@@ -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