refactor: 优化RPC对战加入与
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user