Skip to content

Commit

Permalink
(fix): set subversion when #Subscribe (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
superhx committed Aug 30, 2021
1 parent 0922226 commit 29d789e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ func buildSubscriptionData(topic string, selector MessageSelector) *internal.Sub
SubString: selector.Expression,
ExpType: string(selector.Type),
}
subData.SubVersion = time.Now().UnixNano()

if selector.Type != "" && selector.Type != TAG {
return subData
Expand Down

0 comments on commit 29d789e

Please sign in to comment.