small refactoring

This commit is contained in:
Chris Lu 2018-08-10 23:47:17 -07:00
parent c81f1cda47
commit 2e427c66ac

View file

@ -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,