thomas-bousquet opened a new pull request, #1444:
URL: https://github.com/apache/pulsar-client-go/pull/1444

   ### Motivation
   
   
   When the Pulsar client is created, if `EnableTransaction` is `true` then the 
transaction coordinator client is created.
   
   If an application tries to create a transaction with  `NewTransaction()` 
when `EnableTransaction` is `false`, the application will panic; returning an 
error when the transaction coordinator is `nil` will prevent this.
   
   ### Modifications
   
   In `NewTransaction()`, a nil check is added . If the transaction 
coordination client is `nil`, the method now returns an error.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API: no
     - The schema: no
     - The default values of configurations: no
     - The wire protocol: no
   
   ### Documentation
   
     - Does this pull request introduce a new feature? 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