wangxing-git commented on issue #83: RocketMQUtil#addUserProperties can 
override headers from rocketmq(eg topic,tags,queue id...)
URL: https://github.com/apache/rocketmq-spring/issues/83#issuecomment-497253553
 
 
   > I added this in 
pr`!MessageConst.STRING_HASH_SET.contains(key.replaceFirst("^" + 
RocketMQHeaders.PREFIX, ""))`.
   
   I use two conditions to optimize the number of times the code is executed.
    `!key.startsWith(RocketMQHeaders.PREFIX) || 
!MessageConst.STRING_HASH_SET.contains(key.replaceFirst("^" + 
RocketMQHeaders.PREFIX, ""))` 
   Reduce the number of executions of 
`!MessageConst.STRING_HASH_SET.contains(key.replaceFirst("^" + 
RocketMQHeaders.PREFIX, ""))`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to