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

   **BUG REPORT**  
   1. Please describe the issue you observed:
   
       - What did you do (The steps to reproduce)?
   
       - What did you expect to see?
   
       - What did you see instead?
   
   Run the test below
   
   ```
   func TestMessageKey(t *testing.T) {
        msg := &Message{}
        expected := "testKey"
        msg.WithKeys([]string{expected})
        actual := msg.GetKeys()
        if actual != expected {
                t.Fatalf("get message key error: expected is '%s', actual is 
'%s'", expected, actual)
        }
   }
   ```
   
   Expect `msg.GetKeys()` returns the same key as  what `msg.WithKeys()` put. 
   `msg.WithKeys()` append an unexpected key separator ' ' to the message key 
instead. 
   The test outputs `get message key error: expected is 'testKey', actual is 
'testKey '`
   
   2. Please tell us about your environment:
   
        - What is your OS?
   
        - What is your client version?
   
        - What is your RocketMQ version?
   
   master code of rocketmq-client-go
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to