set default

This commit is contained in:
Chris Lu 2019-12-20 20:57:38 -08:00
parent cd47112c40
commit 62b1a346ef

View file

@ -19,6 +19,10 @@ 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"),