Skip to content
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

Set client timeout https://github.com/Kong/deck/issues/449 #450

Merged
merged 9 commits into from
Jun 25, 2021

Conversation

fjaenni
Copy link
Contributor

@fjaenni fjaenni commented Jun 25, 2021

@fjaenni fjaenni requested a review from a team as a code owner June 25, 2021 06:38
@CLAassistant
Copy link

CLAassistant commented Jun 25, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@mmorel-35 mmorel-35 left a comment

Choose a reason for hiding this comment

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

Does it really needs to be a public variable? Lowercase shall be enough?

utils/types.go Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
utils/types.go Outdated Show resolved Hide resolved
franciscojn
franciscojn previously approved these changes Jun 25, 2021
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
fjaenni and others added 5 commits June 25, 2021 12:45
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Copy link
Contributor

@rainest rainest left a comment

Choose a reason for hiding this comment

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

@fjaenni some minor linter issues that need addressing.

I'd recommend placing the default timeout in the flag (rootCmd.PersistentFlags().Int("timeout", 10, ...)) and using that value throughout. Otherwise it's a bit confusing that the value shown in help doesn't reflect the actual default timeout--it suggests that the default is instead no timeout.

@fjaenni fjaenni requested a review from rainest June 25, 2021 20:13
@fjaenni
Copy link
Contributor Author

fjaenni commented Jun 25, 2021

@fjaenni some minor linter issues that need addressing.

I'd recommend placing the default timeout in the flag (rootCmd.PersistentFlags().Int("timeout", 10, ...)) and using that value throughout. Otherwise it's a bit confusing that the value shown in help doesn't reflect the actual default timeout--it suggests that the default is instead no timeout.

hi,
I agree, I thought about doing it like this but finally ...
Thank you so much

@codecov-commenter
Copy link

Codecov Report

Merging #450 (143a863) into main (704b7ca) will increase coverage by 0.01%.
The diff coverage is 44.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #450      +/-   ##
==========================================
+ Coverage   50.29%   50.30%   +0.01%     
==========================================
  Files          72       72              
  Lines        5687     5693       +6     
==========================================
+ Hits         2860     2864       +4     
- Misses       2496     2498       +2     
  Partials      331      331              
Impacted Files Coverage Δ
utils/types.go 22.22% <0.00%> (-0.32%) ⬇️
cmd/root.go 58.87% <80.00%> (+0.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 704b7ca...143a863. Read the comment docs.

@rainest rainest merged commit f6299b8 into Kong:main Jun 25, 2021
AntoineJac pushed a commit that referenced this pull request Jan 23, 2024
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
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.

6 participants