mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
default to false in scaffold.go
This commit is contained in:
parent
62b1a346ef
commit
fcbd04c425
|
@ -136,8 +136,8 @@ addresses = [
|
||||||
"localhost:30006",
|
"localhost:30006",
|
||||||
]
|
]
|
||||||
password = ""
|
password = ""
|
||||||
readOnly = true
|
readOnly = false
|
||||||
routeByLatency = true
|
routeByLatency = false
|
||||||
|
|
||||||
[etcd]
|
[etcd]
|
||||||
enabled = false
|
enabled = false
|
||||||
|
|
|
@ -20,9 +20,6 @@ func (store *RedisClusterStore) GetName() string {
|
||||||
|
|
||||||
func (store *RedisClusterStore) Initialize(configuration util.Configuration) (err error) {
|
func (store *RedisClusterStore) Initialize(configuration util.Configuration) (err error) {
|
||||||
|
|
||||||
configuration.SetDefault("useReadOnly", false)
|
|
||||||
configuration.SetDefault("routeByLatency", false)
|
|
||||||
|
|
||||||
return store.initialize(
|
return store.initialize(
|
||||||
configuration.GetStringSlice("addresses"),
|
configuration.GetStringSlice("addresses"),
|
||||||
configuration.GetString("password"),
|
configuration.GetString("password"),
|
||||||
|
|
Loading…
Reference in a new issue