(ctx context.Context, cn *pool.Conn, rd *proto.Reader)
| 607 | } |
| 608 | |
| 609 | func (c *PubSub) processPendingPushNotificationWithReader(ctx context.Context, cn *pool.Conn, rd *proto.Reader) error { |
| 610 | // Only process push notifications for RESP3 connections with a processor |
| 611 | if c.opt.Protocol != 3 || c.pushProcessor == nil { |
| 612 | return nil |
| 613 | } |
| 614 | |
| 615 | // Create handler context with client, connection pool, and connection information |
| 616 | handlerCtx := c.pushNotificationHandlerContext(cn) |
| 617 | return c.pushProcessor.ProcessPendingNotifications(ctx, handlerCtx, rd) |
| 618 | } |
| 619 | |
| 620 | func (c *PubSub) pushNotificationHandlerContext(cn *pool.Conn) push.NotificationHandlerContext { |
| 621 | // PubSub doesn't have a client or connection pool, so we pass nil for those |
no test coverage detected