添加单次的任务队列

This commit is contained in:
Yun
2023-09-09 23:24:11 +08:00
parent 3200f19d63
commit a9570cb743
3 changed files with 206 additions and 9 deletions
+4 -4
View File
@@ -36,10 +36,10 @@ func InitCluster(ctx context.Context, red *redis.Client) *cluster {
clu = &cluster{
ctx: ctx,
redis: red,
lockKey: "timer:globalLockKey",
nextKey: "timer:NextKey",
zsetKey: "timer:zsetKey",
listKey: "timer:listKey",
lockKey: "timer:cluster_globalLockKey",
nextKey: "timer:cluster_nextKey",
zsetKey: "timer:cluster_zsetKey",
listKey: "timer:cluster_listKey",
}
// 监听任务