apache / rocketmq-client-go

Apache RocketMQ go client
https://rocketmq.apache.org/
Apache License 2.0
1.3k stars 421 forks source link

Improve performance and ignore some unused returns and fit with go specifications. #1064

Closed Soulter closed 6 months ago

Soulter commented 1 year ago

What is the purpose of the change

  1. Use copy() instead of loop when copy a slice for a better performance.
  2. Remove a punctuation in an error string to fit with go specifications.
  3. Ignore some unused returns

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.