Browse Source

default to false in scaffold.go

pull/1167/head
Chris Lu 5 years ago
parent
commit
fcbd04c425
  1. 4
      weed/command/scaffold.go
  2. 3
      weed/filer2/redis/redis_cluster_store.go

4
weed/command/scaffold.go

@ -136,8 +136,8 @@ addresses = [
"localhost:30006",
]
password = ""
readOnly = true
routeByLatency = true
readOnly = false
routeByLatency = false
[etcd]
enabled = false

3
weed/filer2/redis/redis_cluster_store.go

@ -20,9 +20,6 @@ func (store *RedisClusterStore) GetName() string {
func (store *RedisClusterStore) Initialize(configuration util.Configuration) (err error) {
configuration.SetDefault("useReadOnly", false)
configuration.SetDefault("routeByLatency", false)
return store.initialize(
configuration.GetStringSlice("addresses"),
configuration.GetString("password"),

Loading…
Cancel
Save