aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-08-10 23:47:17 -0700
committerChris Lu <chris.lu@gmail.com>2018-08-10 23:47:17 -0700
commit2e427c66acb98e6113aed448f29114823888ee29 (patch)
tree7d3ee5e6bea5eb90f3ec9f0ad351c5608384b309 /weed/command/filer.go
parentc81f1cda47ffb9e69d6d0ba02358d8a1e7df9afa (diff)
downloadseaweedfs-2e427c66acb98e6113aed448f29114823888ee29.tar.xz
seaweedfs-2e427c66acb98e6113aed448f29114823888ee29.zip
small refactoring
Diffstat (limited to 'weed/command/filer.go')
-rw-r--r--weed/command/filer.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go
index 8449d84ae..17f2fbdcf 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -88,10 +88,8 @@ func (fo *FilerOptions) start() {
publicVolumeMux = http.NewServeMux()
}
- masters := *f.masters
-
fs, nfs_err := weed_server.NewFilerServer(defaultMux, publicVolumeMux, &weed_server.FilerOption{
- Masters: strings.Split(masters, ","),
+ Masters: strings.Split(*f.masters, ","),
Collection: *f.collection,
DefaultReplication: *f.defaultReplicaPlacement,
RedirectOnRead: *f.redirectOnRead,