Unsubscribe any notification subscribers this module has upon unloading */
| 5967 | |
| 5968 | /* Unsubscribe any notification subscribers this module has upon unloading */ |
| 5969 | void moduleUnsubscribeNotifications(RedisModule *module) { |
| 5970 | listIter li; |
| 5971 | listNode *ln; |
| 5972 | listRewind(moduleKeyspaceSubscribers,&li); |
| 5973 | while((ln = listNext(&li))) { |
| 5974 | RedisModuleKeyspaceSubscriber *sub = ln->value; |
| 5975 | if (sub->module == module) { |
| 5976 | listDelNode(moduleKeyspaceSubscribers, ln); |
| 5977 | zfree(sub); |
| 5978 | } |
| 5979 | } |
| 5980 | } |
| 5981 | |
| 5982 | /* -------------------------------------------------------------------------- |
| 5983 | * ## Modules Cluster API |
no test coverage detected