Browse Source

set default

pull/1167/head
Chris Lu 5 years ago
parent
commit
62b1a346ef
  1. 4
      weed/filer2/redis/redis_cluster_store.go

4
weed/filer2/redis/redis_cluster_store.go

@ -19,6 +19,10 @@ 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…
Cancel
Save