You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "cserwen (via GitHub)" <gi...@apache.org> on 2023/04/27 10:12:08 UTC
[GitHub] [rocketmq-client-go] cserwen commented on a diff in pull request #1001: fix wrong add for set when tags are set
cserwen commented on code in PR #1001:
URL: https://github.com/apache/rocketmq-client-go/pull/1001#discussion_r1178937746
##########
internal/model.go:
##########
@@ -73,15 +73,15 @@ func (sd *SubscriptionData) Clone() *SubscriptionData {
if sd.Tags.Items() != nil {
cloned.Tags = utils.NewSet()
- for _, value := range sd.Tags.Items() {
- cloned.Tags.Add(value)
+ for key, value := range sd.Tags.Items() {
+ cloned.Tags.AddKV(key, value.UniqueID())
Review Comment:
`Key` is the real tag.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org