mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
small refactoring
This commit is contained in:
parent
c81f1cda47
commit
2e427c66ac
|
@ -88,10 +88,8 @@ func (fo *FilerOptions) start() {
|
||||||
publicVolumeMux = http.NewServeMux()
|
publicVolumeMux = http.NewServeMux()
|
||||||
}
|
}
|
||||||
|
|
||||||
masters := *f.masters
|
|
||||||
|
|
||||||
fs, nfs_err := weed_server.NewFilerServer(defaultMux, publicVolumeMux, &weed_server.FilerOption{
|
fs, nfs_err := weed_server.NewFilerServer(defaultMux, publicVolumeMux, &weed_server.FilerOption{
|
||||||
Masters: strings.Split(masters, ","),
|
Masters: strings.Split(*f.masters, ","),
|
||||||
Collection: *f.collection,
|
Collection: *f.collection,
|
||||||
DefaultReplication: *f.defaultReplicaPlacement,
|
DefaultReplication: *f.defaultReplicaPlacement,
|
||||||
RedirectOnRead: *f.redirectOnRead,
|
RedirectOnRead: *f.redirectOnRead,
|
||||||
|
|
Loading…
Reference in a new issue