aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-28 15:23:46 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-28 15:23:46 -0800
commitd475c89fccf1f020e6f552a5923a688a56e0f1ed (patch)
tree1bd71ad666d5a95cc8e816f23f91fb731f1559fd /weed/command
parent19295600f94fd18d09323cb17e89c115c811fb52 (diff)
downloadseaweedfs-d475c89fccf1f020e6f552a5923a688a56e0f1ed.tar.xz
seaweedfs-d475c89fccf1f020e6f552a5923a688a56e0f1ed.zip
go fmt
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/filer_sync.go30
-rw-r--r--weed/command/mount.go10
-rw-r--r--weed/command/mount_std.go20
3 files changed, 30 insertions, 30 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go
index f4411b756..9a23fd731 100644
--- a/weed/command/filer_sync.go
+++ b/weed/command/filer_sync.go
@@ -20,21 +20,21 @@ import (
)
type SyncOptions struct {
- isActivePassive *bool
- filerA *string
- filerB *string
- aPath *string
- bPath *string
- aReplication *string
- bReplication *string
- aCollection *string
- bCollection *string
- aTtlSec *int
- bTtlSec *int
- aDebug *bool
- bDebug *bool
- aProxyByFiler *bool
- bProxyByFiler *bool
+ isActivePassive *bool
+ filerA *string
+ filerB *string
+ aPath *string
+ bPath *string
+ aReplication *string
+ bReplication *string
+ aCollection *string
+ bCollection *string
+ aTtlSec *int
+ bTtlSec *int
+ aDebug *bool
+ bDebug *bool
+ aProxyByFiler *bool
+ bProxyByFiler *bool
}
var (
diff --git a/weed/command/mount.go b/weed/command/mount.go
index febc80683..fce3eba22 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -6,11 +6,11 @@ import (
)
type MountOptions struct {
- filer *string
- filerMountRootPath *string
- dir *string
- dirAutoCreate *bool
- collection *string
+ filer *string
+ filerMountRootPath *string
+ dir *string
+ dirAutoCreate *bool
+ collection *string
replication *string
ttlSec *int
chunkSizeLimitMB *int
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 26c59a1c7..83ae870e6 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -169,16 +169,16 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
}
seaweedFileSystem := filesys.NewSeaweedFileSystem(&filesys.Option{
- MountDirectory: dir,
- FilerAddress: filer,
- FilerGrpcAddress: filerGrpcAddress,
- GrpcDialOption: grpcDialOption,
- FilerMountRootPath: mountRoot,
- Collection: *option.collection,
- Replication: *option.replication,
- TtlSec: int32(*option.ttlSec),
- ChunkSizeLimit: int64(chunkSizeLimitMB) * 1024 * 1024,
- ConcurrentWriters: *option.concurrentWriters,
+ MountDirectory: dir,
+ FilerAddress: filer,
+ FilerGrpcAddress: filerGrpcAddress,
+ GrpcDialOption: grpcDialOption,
+ FilerMountRootPath: mountRoot,
+ Collection: *option.collection,
+ Replication: *option.replication,
+ TtlSec: int32(*option.ttlSec),
+ ChunkSizeLimit: int64(chunkSizeLimitMB) * 1024 * 1024,
+ ConcurrentWriters: *option.concurrentWriters,
CacheDir: *option.cacheDir,
CacheSizeMB: *option.cacheSizeMB,
DataCenter: *option.dataCenter,