mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 18:31:10 +08:00
Update fs/operations/multithread.go
Co-authored-by: albertony <12441419+albertony@users.noreply.github.com>
This commit is contained in:
parent
193e0011b7
commit
b96fc02fe1
@ -312,7 +312,7 @@ func (w *writerAtChunkWriter) WriteChunk(ctx context.Context, chunkNumber int, r
|
||||
// if we were buffering, flush to disk
|
||||
switch w := writer.(type) {
|
||||
case *bufio.Writer:
|
||||
err := w.Flush()
|
||||
err = w.Flush()
|
||||
if err != nil {
|
||||
return -1, fmt.Errorf("multi-thread copy: flush failed: %w", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user