You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "mevyen (via GitHub)" <gi...@apache.org> on 2023/03/09 04:20:20 UTC

[GitHub] [rocketmq-client-go] mevyen opened a new issue, #1011: primitive.Message.WithKeys() 默认使用空格分割的问题

mevyen opened a new issue, #1011:
URL: https://github.com/apache/rocketmq-client-go/issues/1011

   默认使用 空格 分割,会导致消费端收到的消息key与实际设置的不符
   ```
   func (m *Message) WithKeys(keys []string) *Message {
   	var sb strings.Builder
   	for _, k := range keys {
   		sb.WriteString(k)
   		sb.WriteString(PropertyKeySeparator)
   	}
   
   	m.WithProperty(PropertyKeys, sb.String())
   	return m
   }
   ```


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-client-go] cserwen commented on issue #1011: primitive.Message.WithKeys() 默认使用空格分割的问题

Posted by "cserwen (via GitHub)" <gi...@apache.org>.
cserwen commented on issue #1011:
URL: https://github.com/apache/rocketmq-client-go/issues/1011#issuecomment-1463306019

   有具体的例子吗,想看下差异是什么 @mevyen 


-- 
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