mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-09 05:39:08 -07:00
Set up initial outbound synchronization structure
This commit is contained in:
2
cache/redis/redis.go
vendored
2
cache/redis/redis.go
vendored
@@ -31,7 +31,7 @@ func (d *driver) New(conf *config.DataStore) cache.Pool {
|
||||
return &Pool{
|
||||
conf: conf,
|
||||
pool: redis.Pool{
|
||||
MaxIdle: conf.MaxIdleConn,
|
||||
MaxIdle: conf.MaxIdleConns,
|
||||
IdleTimeout: conf.IdleTimeout.Duration,
|
||||
Dial: makeDialFunc(conf),
|
||||
TestOnBorrow: testOnBorrow,
|
||||
|
||||
2
cache/redis/redis_test.go
vendored
2
cache/redis/redis_test.go
vendored
@@ -47,7 +47,7 @@ func createTestTxObj(t TestReporter) *Tx {
|
||||
testPool := &Pool{
|
||||
conf: conf,
|
||||
pool: redis.Pool{
|
||||
MaxIdle: conf.MaxIdleConn,
|
||||
MaxIdle: conf.MaxIdleConns,
|
||||
IdleTimeout: conf.IdleTimeout.Duration,
|
||||
Dial: makeDialFunc(conf),
|
||||
TestOnBorrow: testOnBorrow,
|
||||
|
||||
Reference in New Issue
Block a user