From 2e427c66acb98e6113aed448f29114823888ee29 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 10 Aug 2018 23:47:17 -0700 Subject: [PATCH] small refactoring --- weed/command/filer.go | 4 +--- 1 file changed, 1 insertion(+), 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,