1
0
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:
monkey
2023-01-20 23:19:49 +08:00
parent 31f6ce0399
commit 97697f488f
5 changed files with 96 additions and 63 deletions

View File

@@ -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