aboutsummaryrefslogtreecommitdiff
path: root/weed/filer
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-08 22:30:36 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-08 22:30:36 -0700
commitc5f38c365d7d5cd4dc74e5cafefc0c461a0d478e (patch)
tree3e36e477503bd355e1a3d43af7a462eb653735d4 /weed/filer
parentdf85f7a1ebf81e1f8fe8bed5089bf5be71d7c76f (diff)
downloadseaweedfs-c5f38c365d7d5cd4dc74e5cafefc0c461a0d478e.tar.xz
seaweedfs-c5f38c365d7d5cd4dc74e5cafefc0c461a0d478e.zip
go fmt
Diffstat (limited to 'weed/filer')
-rw-r--r--weed/filer/filer_remote_storage.go2
-rw-r--r--weed/filer/filer_remote_storage_test.go2
-rw-r--r--weed/filer/read_remote.go2
3 files changed, 2 insertions, 4 deletions
diff --git a/weed/filer/filer_remote_storage.go b/weed/filer/filer_remote_storage.go
index bb5a3604a..f09658015 100644
--- a/weed/filer/filer_remote_storage.go
+++ b/weed/filer/filer_remote_storage.go
@@ -160,8 +160,6 @@ func RemoveRemoteStorageMapping(oldContent []byte, dir string) (newContent []byt
return
}
-
-
func ReadMountMappings(grpcDialOption grpc.DialOption, filerAddress string) (mappings *filer_pb.RemoteStorageMapping, readErr error) {
var oldContent []byte
if readErr = pb.WithFilerClient(filerAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
diff --git a/weed/filer/filer_remote_storage_test.go b/weed/filer/filer_remote_storage_test.go
index 427cd5a8a..35ffc7538 100644
--- a/weed/filer/filer_remote_storage_test.go
+++ b/weed/filer/filer_remote_storage_test.go
@@ -31,4 +31,4 @@ func TestFilerRemoteStorage_FindRemoteStorageClient(t *testing.T) {
_, _, found4 := rs.FindRemoteStorageClient("/a/b/cc")
assert.Equal(t, false, found4, "should not find storage client")
-} \ No newline at end of file
+}
diff --git a/weed/filer/read_remote.go b/weed/filer/read_remote.go
index d9423ceda..8636a5c20 100644
--- a/weed/filer/read_remote.go
+++ b/weed/filer/read_remote.go
@@ -9,7 +9,7 @@ func (entry *Entry) IsInRemoteOnly() bool {
return len(entry.Chunks) == 0 && entry.Remote != nil && entry.Remote.Size > 0
}
-func (f *Filer) ReadRemote(entry *Entry, offset int64, size int64) (data[]byte, err error) {
+func (f *Filer) ReadRemote(entry *Entry, offset int64, size int64) (data []byte, err error) {
client, _, found := f.RemoteStorage.GetRemoteStorageClient(entry.Remote.StorageName)
if !found {
return nil, fmt.Errorf("remote storage %v not found", entry.Remote.StorageName)