Skip to content

Commit

Permalink
[ISSUE #688] fix: type assert panic
Browse files Browse the repository at this point in the history
  • Loading branch information
fengberlin authored Jul 5, 2021
1 parent 76dd050 commit 2bdc662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer/pull_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (c *defaultPullConsumer) getNextQueueOf(topic string) *primitive.MessageQue
v, exist := queueCounterTable.Load(topic)
if !exist {
index = -1
queueCounterTable.Store(topic, 0)
queueCounterTable.Store(topic, int64(0))
} else {
index = v.(int64)
}
Expand Down

0 comments on commit 2bdc662

Please sign in to comment.