You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/08/05 13:30:19 UTC

[GitHub] [pulsar-client-go] jiazhai commented on a change in pull request #42: [issue:40]Fix producer send protocol error

jiazhai commented on a change in pull request #42: [issue:40]Fix producer send protocol error
URL: https://github.com/apache/pulsar-client-go/pull/42#discussion_r310604864
 
 

 ##########
 File path: pulsar/internal/commands_test.go
 ##########
 @@ -37,3 +37,19 @@ func TestConvertStringMap(t *testing.T) {
 	assert.Equal(t, "1", m2["a"])
 	assert.Equal(t, "2", m2["b"])
 }
+
+func TestDecodeBatchPayload(t *testing.T) {
+	payload := []byte{0, 0, 0, 2, 24, 12, 104, 101, 108, 108, 111, 45, 112, 117, 108, 115, 97, 114} // hello-pulsar
 
 Review comment:
   Seems this is batch payload, contains a single message of payload "hello-pulsar"

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services