Commit 2d0a61ee by 蒋勇

d

parent 7e197aba
......@@ -17,7 +17,9 @@ class TaskBase{
await this.redisClient.subscribe(this.TASK_CHANNEL);
//频道事件处理函数
this.redisClient.subclient.on("message", async function (channel, message) {
if(channel==self.TASK_CHANNEL){
await self.taskHandle(channel, message);
}
});
await this.subBeforeTask(params);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment