This commit is contained in:
ereti
2022-12-14 05:08:01 +00:00
parent bf866b5619
commit b59b6707c0
12 changed files with 577 additions and 208 deletions
-2
View File
@@ -41,8 +41,6 @@ export function RedisPub<T extends RedisIPCChannels>(channel: T, data: RedisIPCD
export function RedisSub<T extends RedisIPCChannels>(channel: T, callback: RedisSubCallback<T>) {
if (SubCallbacks[channel]) {
// @ts-expect-error It's complaining that the T in channel might be a different T to the T in callback
// this is obviously nonsense.
SubCallbacks[channel]!.push(callback);
logger.debug(`Pushed callback ${callback.name} to channel ${channel}.`);
} else {