Skip to content

Commit

Permalink
feat: 创建队列错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Jun 11, 2020
1 parent d7634eb commit 958a181
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ func (c *Consumer) CreateQueueList(fetchQueueReady chan struct{}) chan struct{}
_, err := c.CreateQueue(queue.Name, queue.AttributeSetters...)
return err
})
switch err {
case nil:
case createQueueConflictError, unknownError:
c.logger.Warn("CreateQueue", zap.Error(err))
if err != nil && !lockguard.IsLockNotObtained(err) {
c.logger.Warn("CreateQueue",
zap.Error(err),
zap.String("queue", queue.Name))
}
}
createQueueReady <- struct{}{}
Expand Down

0 comments on commit 958a181

Please sign in to comment.