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

Method pushNotificationHandlerContext

pubsub.go:620–628  ·  view source on GitHub ↗
(cn *pool.Conn)

Source from the content-addressed store, hash-verified

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
622 // PubSub connections are blocking
623 return push.NotificationHandlerContext{
624 PubSub: c,
625 Conn: cn,
626 IsBlocking: true,
627 }
628}
629
630type ChannelOption func(c *channel)
631

Calls

no outgoing calls

Tested by

no test coverage detected