mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
fix: address pr review
This commit is contained in:
@ -221,11 +221,11 @@ type Options struct {
|
||||
// When enabled, the client will process RESP3 push notifications and
|
||||
// route them to registered handlers.
|
||||
//
|
||||
// For RESP3 connections (Protocol: 3), push notifications are automatically enabled.
|
||||
// To disable push notifications for RESP3, use Protocol: 2 instead.
|
||||
// For RESP3 connections (Protocol: 3), push notifications are always enabled
|
||||
// and cannot be disabled. To avoid push notifications, use Protocol: 2 (RESP2).
|
||||
// For RESP2 connections, push notifications are not available.
|
||||
//
|
||||
// default: automatically enabled for RESP3, disabled for RESP2
|
||||
// default: always enabled for RESP3, disabled for RESP2
|
||||
PushNotifications bool
|
||||
|
||||
// PushNotificationProcessor is the processor for handling push notifications.
|
||||
@ -609,5 +609,7 @@ func newConnPool(
|
||||
ConnMaxLifetime: opt.ConnMaxLifetime,
|
||||
// Pass push notification processor for connection initialization
|
||||
PushNotificationProcessor: opt.PushNotificationProcessor,
|
||||
// Pass protocol version for push notification optimization
|
||||
Protocol: opt.Protocol,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user