smazurov opened a new pull request #575:
URL: https://github.com/apache/pulsar-client-go/pull/575


   ### Motivation
   
   Today, you are forced to use internal schema encoding when sending messages 
to a topic that has a schema defined. If we do message encoding (into bytes) 
before hand, set that as a payload but leave value empty, the internal schema 
encoder fails the message since `Value` isn't set. This change makes it 
possible to easily skip this logic without resorting to hacking a Schema 
interface or other things like double encoding. 
   
   This change would also make it a lot easier to get a 
[watermill](https://github.com/ThreeDotsLabs/watermill) adapter in place 
because watermill assumes message encoding happens in "userland".
   
   ### Modifications
   
   A simple check to ensure `msg.Value` is not nil 
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change is already covered by existing tests
   
   ### Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API: no
     - The schema: maybe
     - The default values of configurations: maybe
     - The wire protocol: no


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