Skip to content

Commit

Permalink
feat: 启动时创建stream
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed May 12, 2024
1 parent 2934dbf commit fffc2d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/mq/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func NewRedisStreamMQ() *RedisStreamMQ {
// 检查流是否存在
client.XGroupCreateMkStream(context.Background(), viper.GetString("mq.redis.stream.publish_post"), "campux", "0")
client.XGroupCreateMkStream(context.Background(), viper.GetString("mq.redis.stream.new_post"), "campux", "0")
client.XGroupCreateMkStream(context.Background(), viper.GetString("mq.redis.stream.post_cancel"), "campux", "0")

return &RedisStreamMQ{
Client: client,
Expand Down

0 comments on commit fffc2d0

Please sign in to comment.