mirror of
https://github.com/redis/go-redis.git
synced 2025-08-08 23:42:06 +03:00
feat: hook mode is changed to FIFO
Signed-off-by: monkey <golang@88.com>
This commit is contained in:
@@ -278,8 +278,10 @@ func NewSentinelClient(opt *Options) *SentinelClient {
|
||||
},
|
||||
}
|
||||
|
||||
c.hooks.setDial(c.baseClient.dial)
|
||||
c.hooks.setProcess(c.baseClient.process)
|
||||
c.hooks.setDefaultHook(defaultHook{
|
||||
dial: c.baseClient.dial,
|
||||
process: c.baseClient.process,
|
||||
})
|
||||
c.connPool = newConnPool(opt, c.hooks.dial)
|
||||
|
||||
return c
|
||||
|
Reference in New Issue
Block a user