mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add OnConnect context
This commit is contained in:
@ -372,7 +372,7 @@ var _ = Describe("Client OnConnect", func() {
|
||||
BeforeEach(func() {
|
||||
opt := redisOptions()
|
||||
opt.DB = 0
|
||||
opt.OnConnect = func(cn *redis.Conn) error {
|
||||
opt.OnConnect = func(ctx context.Context, cn *redis.Conn) error {
|
||||
return cn.ClientSetName(ctx, "on_connect").Err()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user