mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-11 14:41:16 -07:00
stats test, add/remove torrent handlers, init batter driver
This commit is contained in:
2
cache/redis/redis.go
vendored
2
cache/redis/redis.go
vendored
@@ -41,7 +41,7 @@ func (d *driver) New(conf *config.DataStore) cache.Pool {
|
||||
|
||||
func makeDialFunc(conf *config.DataStore) func() (redis.Conn, error) {
|
||||
return func() (conn redis.Conn, err error) {
|
||||
conn, err = redis.Dial(conf.Network, conf.Addr)
|
||||
conn, err = redis.Dial(conf.Network, conf.Host+":"+conf.Port)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user