aboutsummaryrefslogtreecommitdiff
path: root/go/filer
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2016-03-08 08:46:28 -0800
committerchrislusf <chris.lu@gmail.com>2016-03-08 08:46:28 -0800
commit4c8367a8b379fcafe5c2e502f7980cde3aa0b606 (patch)
tree63908a65d4979353cbbaab939d010d999fdaa78c /go/filer
parentf7f9129b054644bb3795ff2991812ac511e52cfd (diff)
downloadseaweedfs-4c8367a8b379fcafe5c2e502f7980cde3aa0b606.tar.xz
seaweedfs-4c8367a8b379fcafe5c2e502f7980cde3aa0b606.zip
add redis password
fix https://github.com/chrislusf/seaweedfs/issues/263
Diffstat (limited to 'go/filer')
-rw-r--r--go/filer/redis_store/redis_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/filer/redis_store/redis_store.go b/go/filer/redis_store/redis_store.go
index e71776845..939172557 100644
--- a/go/filer/redis_store/redis_store.go
+++ b/go/filer/redis_store/redis_store.go
@@ -8,10 +8,10 @@ type RedisStore struct {
Client *redis.Client
}
-func NewRedisStore(hostPort string, database int) *RedisStore {
+func NewRedisStore(hostPort string, password string, database int) *RedisStore {
client := redis.NewTCPClient(&redis.Options{
Addr: hostPort,
- Password: "", // no password set
+ Password: password,
DB: int64(database),
})
return &RedisStore{Client: client}