-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds new NewClientWithAddressContextNoEnvTimeout
func
#437
base: main
Are you sure you want to change the base?
Adds new NewClientWithAddressContextNoEnvTimeout
func
#437
Conversation
which ignores the `DAPR_CLIENT_TIMEOUT_SECONDS` env var. Signed-off-by: joshvanl <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #437 +/- ##
==========================================
+ Coverage 70.00% 70.04% +0.04%
==========================================
Files 33 33
Lines 2667 2671 +4
==========================================
+ Hits 1867 1871 +4
Misses 698 698
Partials 102 102
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an approved proposal that let's users configure the timeout via env variable. The name has changed, to become a standard across SDKs. Can this env variable be kept and change the default to be "no timeout" instead of 5s?
Another options is to have the env var override the timeout for the context (if possible). |
I'd be happy to have the default to be no timeout if we don't consider that a breaking change. |
It is a breaking change. Yaron would need to accept that as a maintainer
here. I am not.
…On Wed, Aug 16, 2023 at 3:31 PM Josh van Leeuwen ***@***.***> wrote:
I'd be happy to have the default to be no timeout if we don't consider
that a breaking change.
—
Reply to this email directly, view it on GitHub
<#437 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA77CT33CYL5O5FBKHYUZ3XVVC2RANCNFSM6AAAAAA3TE7Q5E>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have knowledge of Go-SDK users that rely on the default 5s timeout for various reasons, so I recommend to not change the default. |
ping @JoshVanL |
Signed-off-by: joshvanl <[email protected]>
As an app developer I do not want to have a default of 5 seconds timeout for connecting to daprd, and don't wish to use environment variables to configure this value. Instead, I would like to solely rely on the context I pass to the client New func.
Adds new
NewClientWithAddressContextNoEnvTimeout
func to create clientwhich ignores theDAPR_CLIENT_TIMEOUT_SECONDS
env var.