tk103331 opened a new issue, #2938:
URL: https://github.com/apache/incubator-devlake/issues/2938

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   I create ApiClient with a timeout value. But, the timeout value of ApiClient 
is incorrectly overridden by `helper.CreateAsyncApiClient()`.
   I don't think this should be overridden when API_TIMEOUT is empty, 
especially since I've set a timeout value.
   
   
https://github.com/apache/incubator-devlake/blob/cb25f65384bd4608b29c48587084be42cb8bbe4e/plugins/helper/api_async_client.go#L59-L63
   
   ### What you expected to happen
   
   I think the timeout value should'n be overridden when API_TIMEOUT is empty, 
especially since I've set a timeout value.
   
   ### How to reproduce
   
   1. Create ApiClient with a timeout value.
   2. Use helper.CreateAsyncApiClient() to create AsyncApiClient.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   main
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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