aboutsummaryrefslogtreecommitdiff
path: root/weed/replication
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-17 10:01:55 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-17 10:01:55 -0700
commitbec6ec7db68fe3858ec6ecd683ef32f5236d174a (patch)
treefc561153d0a356588cdfa9efef6181d4c370b90b /weed/replication
parentb964bbab3db8f160fe3aa240a808d92aa5f80078 (diff)
downloadseaweedfs-bec6ec7db68fe3858ec6ecd683ef32f5236d174a.tar.xz
seaweedfs-bec6ec7db68fe3858ec6ecd683ef32f5236d174a.zip
go fmt
Diffstat (limited to 'weed/replication')
-rw-r--r--weed/replication/sink/filersink/fetch_write.go2
-rw-r--r--weed/replication/sink/s3sink/s3_write.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/replication/sink/filersink/fetch_write.go b/weed/replication/sink/filersink/fetch_write.go
index 360a34620..74f3a72bb 100644
--- a/weed/replication/sink/filersink/fetch_write.go
+++ b/weed/replication/sink/filersink/fetch_write.go
@@ -20,7 +20,7 @@ func (fs *FilerSink) replicateChunks(sourceChunks []*filer_pb.FileChunk, dir str
return
}
- replicatedChunks = make([]*filer_pb.FileChunk, len(sourceChunks))
+ replicatedChunks = make([]*filer_pb.FileChunk, len(sourceChunks))
var wg sync.WaitGroup
for chunkIndex, sourceChunk := range sourceChunks {
diff --git a/weed/replication/sink/s3sink/s3_write.go b/weed/replication/sink/s3sink/s3_write.go
index 854688b1e..c5c65ed5c 100644
--- a/weed/replication/sink/s3sink/s3_write.go
+++ b/weed/replication/sink/s3sink/s3_write.go
@@ -162,6 +162,6 @@ func (s3sink *S3Sink) buildReadSeeker(chunk *filer2.ChunkView) (io.ReadSeeker, e
return nil, err
}
buf := make([]byte, chunk.Size)
- util.ReadUrl(fileUrl, nil, false,false, chunk.Offset, int(chunk.Size), buf)
+ util.ReadUrl(fileUrl, nil, false, false, chunk.Offset, int(chunk.Size), buf)
return bytes.NewReader(buf), nil
}