Unsubscribe any notification subscribers this module has upon unloading */
| 6143 | |
| 6144 | /* Unsubscribe any notification subscribers this module has upon unloading */ |
| 6145 | void moduleUnsubscribeNotifications(RedisModule *module) { |
| 6146 | listIter li; |
| 6147 | listNode *ln; |
| 6148 | listRewind(moduleKeyspaceSubscribers,&li); |
| 6149 | while((ln = listNext(&li))) { |
| 6150 | RedisModuleKeyspaceSubscriber *sub = (RedisModuleKeyspaceSubscriber*)ln->value; |
| 6151 | if (sub->module == module) { |
| 6152 | listDelNode(moduleKeyspaceSubscribers, ln); |
| 6153 | zfree(sub); |
| 6154 | } |
| 6155 | } |
| 6156 | } |
| 6157 | |
| 6158 | /* -------------------------------------------------------------------------- |
| 6159 | * ## Modules Cluster API |
no test coverage detected