MCPcopy
hub / github.com/redis/go-redis / processPendingPushNotificationWithReader

Method processPendingPushNotificationWithReader

pubsub.go:609–618  ·  view source on GitHub ↗
(ctx context.Context, cn *pool.Conn, rd *proto.Reader)

Source from the content-addressed store, hash-verified

607}
608
609func (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
620func (c *PubSub) pushNotificationHandlerContext(cn *pool.Conn) push.NotificationHandlerContext {
621 // PubSub doesn't have a client or connection pool, so we pass nil for those

Callers 2

ReceiveTimeoutMethod · 0.95
txPipelineReadQueuedMethod · 0.45

Tested by

no test coverage detected