1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

fix: simplify api

This commit is contained in:
Nedyalko Dyakov
2025-06-27 22:25:36 +03:00
parent f7948b5c5c
commit 3473c1e998
7 changed files with 26 additions and 1521 deletions

View File

@ -8,6 +8,7 @@ import (
"time"
"github.com/redis/go-redis/v9/internal/proto"
"github.com/redis/go-redis/v9/internal/pushnotif"
)
var noDeadline = time.Time{}
@ -27,8 +28,8 @@ type Conn struct {
onClose func() error
// Push notification processor for handling push notifications on this connection
// Uses the same interface as defined in pool.go to avoid duplication
PushNotificationProcessor PushNotificationProcessorInterface
// This is set when the connection is created and is a reference to the processor
PushNotificationProcessor pushnotif.ProcessorInterface
}
func NewConn(netConn net.Conn) *Conn {