Skip to content

Changed distributedLock example to consider a new default port number#966

Merged
halspang merged 3 commits into
dapr:masterfrom
amulyavarote:lockexample_changes
Oct 24, 2022
Merged

Changed distributedLock example to consider a new default port number#966
halspang merged 3 commits into
dapr:masterfrom
amulyavarote:lockexample_changes

Conversation

@amulyavarote
Copy link
Copy Markdown
Contributor

Signed-off-by: Amulya Varote amulyavarote@microsoft.com

Description

Please explain the changes you've made

Changed distributedLock example to consider a new default port number to avoid default port conflict.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #NA

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
@amulyavarote amulyavarote requested review from a team as code owners October 4, 2022 22:48
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 4, 2022

Codecov Report

Merging #966 (9d749ef) into master (e87b9ad) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #966   +/-   ##
=======================================
  Coverage   69.78%   69.78%           
=======================================
  Files         156      156           
  Lines        5186     5186           
  Branches      555      555           
=======================================
  Hits         3619     3619           
  Misses       1435     1435           
  Partials      132      132           
Flag Coverage Δ
net5 69.74% <ø> (ø)
net6 69.70% <ø> (ø)
netcoreapp3.1 69.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

{
webBuilder.UseStartup<Startup>()
.UseUrls($"http://localhost:{Environment.GetEnvironmentVariable("APP_PORT")}");
.UseUrls($"http://localhost:{Environment.GetEnvironmentVariable("APP_PORT") ?? "22222"}");
Copy link
Copy Markdown
Contributor

@yash-nisar yash-nisar Oct 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Instead of directly hardcoding the number, do you want to define this in a variable like DEFAULT_APP_PORT for better readability ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! Makes sense!

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
Copy link
Copy Markdown
Contributor

@yash-nisar yash-nisar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants