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/07/10 06:46:51 UTC

[GitHub] [pulsar-client-go] wolfstudy opened a new issue #17: Whether the error return value of Close() should be removed

wolfstudy opened a new issue #17: Whether the error return value of Close() should be removed
URL: https://github.com/apache/pulsar-client-go/issues/17
 
 
   In the go language, in general, we can't ignore the error, but in the `client`, `producer`, and `consumer` we ignore a lot of return values of the error type, are these return values necessary?
   
   For example:
   
   ```
   defer client.Close()
   ```
   
   In many cases, we will use the above method to perform the `Close` operation. If the error of the close is negligible, we should remove the return value of the error in the interface definition.
   
   

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