aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-07-14 07:34:16 -0700
committerChris Lu <chris.lu@gmail.com>2020-07-14 07:34:16 -0700
commitddec7b2bb986a352cc999ac4e350c8f3be87eacd (patch)
tree7d357fd00f6a92ed218e047de47ae2ae1f3d01de /weed/command/master.go
parent4f6096c7f08d1a2468451684d44675310512524d (diff)
downloadseaweedfs-ddec7b2bb986a352cc999ac4e350c8f3be87eacd.tar.xz
seaweedfs-ddec7b2bb986a352cc999ac4e350c8f3be87eacd.zip
go fmt
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 21c759f4e..7cbd66f5c 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -26,13 +26,13 @@ var (
)
type MasterOptions struct {
- port *int
- ip *string
- ipBind *string
- metaFolder *string
- peers *string
- volumeSizeLimitMB *uint
- volumePreallocate *bool
+ port *int
+ ip *string
+ ipBind *string
+ metaFolder *string
+ peers *string
+ volumeSizeLimitMB *uint
+ volumePreallocate *bool
// pulseSeconds *int
defaultReplication *string
garbageThreshold *float64
@@ -173,11 +173,11 @@ func checkPeers(masterIp string, masterPort int, peers string) (masterAddress st
func (m *MasterOptions) toMasterOption(whiteList []string) *weed_server.MasterOption {
return &weed_server.MasterOption{
- Host: *m.ip,
- Port: *m.port,
- MetaFolder: *m.metaFolder,
- VolumeSizeLimitMB: *m.volumeSizeLimitMB,
- VolumePreallocate: *m.volumePreallocate,
+ Host: *m.ip,
+ Port: *m.port,
+ MetaFolder: *m.metaFolder,
+ VolumeSizeLimitMB: *m.volumeSizeLimitMB,
+ VolumePreallocate: *m.volumePreallocate,
// PulseSeconds: *m.pulseSeconds,
DefaultReplicaPlacement: *m.defaultReplication,
GarbageThreshold: *m.garbageThreshold,