ItalyPaleAle opened a new issue, #1068:
URL: https://github.com/apache/rocketmq-client-go/issues/1068

   **BUG REPORT**  
   
   This is an issue we've discovered in Dapr because we offer support for 
RocketMQ.
   
   1. Please describe the issue you observed:
   
       - **What did you do (The steps to reproduce)?** Import the 
rocketmq-client-go library, even if no client is initialized
   
       - **What did you expect to see?** Nothing should happen - the library 
should not initialize objects just because it's imported. All caches should be 
loaded lazily.
   
       - **What did you see instead?**  [This 
line](https://github.com/apache/rocketmq-client-go/blob/2a8172bb9174d82173ca51488ddb253bdbc22cb5/internal/request_response_future.go#L33)
 causes `RequestResponseFutureMap` to be initialized as a global variable, 
which allocates a `requestResponseFutureCache` and spawns a goroutine
   
   2. Please tell us about your environment:
   
        - **What is your OS?** Linux/amd64
   
        - **What is your client version?** 2.1.2
   
        - **What is your RocketMQ version?** N/A
   
   3. Other information (e.g. detailed explanation, logs, related issues, 
suggestions on how to fix, etc):
   


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