Return the number of channels + patterns a client is subscribed to. */
| 127 | |
| 128 | /* Return the number of channels + patterns a client is subscribed to. */ |
| 129 | int clientSubscriptionsCount(client *c) { |
| 130 | return dictSize(c->pubsub_channels)+ |
| 131 | listLength(c->pubsub_patterns); |
| 132 | } |
| 133 | |
| 134 | /* Subscribe a client to a channel. Returns 1 if the operation succeeded, or |
| 135 | * 0 if the client was already subscribed to that channel. */ |
no outgoing calls
no test coverage detected