refactor: 优化RPC对战加入与
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-12 14:35:27 +08:00
committed by cnb
parent 7720138290
commit af09d1ae86
4 changed files with 27 additions and 38 deletions

View File

@@ -82,8 +82,7 @@ func ListenFunc(ctx g.Ctx) {
continue
}
cool.Logger.Info(ctx, "成功订阅 Redis 主题", "topic", subscribeTopic)
_, err = conn.Do(ctx, "subscribe", "sun:join") //加入队列
_, err = conn.Do(ctx, "subscribe", "sun:cancel") //退出队列
_, err = conn.Do(ctx, "subscribe", "sun:join") //加入队列
// 4. 循环接收消息
connError := false