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

🐛 #186: update timeouts per example in time package #187

Closed
wants to merge 1 commit into from

Conversation

mkrueger12
Copy link
Contributor

  • changed defaultTimeout, readTimeout, writeTimeout, and idleTimeout to remove multiplication bug

@mkrueger12 mkrueger12 added the type:bug Something isn't working as expected label Mar 22, 2024
@mkrueger12 mkrueger12 linked an issue Mar 22, 2024 that may be closed by this pull request
Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.58%. Comparing base (369ddea) to head (05a4964).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #187   +/-   ##
========================================
  Coverage    66.58%   66.58%           
========================================
  Files           73       73           
  Lines         3163     3163           
========================================
  Hits          2106     2106           
  Misses         948      948           
  Partials       109      109           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roma-glushko
Copy link
Member

roma-glushko commented Mar 24, 2024

This is interesting 👀

10 * time.Second, let's say, should be a valid Golang way to define 10 sec interval. I'm wondering what sort of problem that has caused 🤔

@roma-glushko roma-glushko changed the title #186: update timeouts per example in time package 🐛 #186: update timeouts per example in time package Mar 24, 2024
@mkrueger12
Copy link
Contributor Author

@roma-glushko I noticed the timeouts we're 10,000,000,000 in the router config. Not sure if that was seconds or ms but the math still doesn't align to 10s

@roma-glushko
Copy link
Member

roma-glushko commented Mar 24, 2024

@mkrueger12 My guess it's really 10s but it's just rendered somewhere in micro or nanoseconds which might be confusing. Can you make me a screenshot where you saw that?

@mkrueger12
Copy link
Contributor Author

image

@roma-glushko
Copy link
Member

roma-glushko commented Mar 30, 2024

Okay, I see. Yes, that's just a confusing way to output that value. The value itself should be fine.
Need to play with swaggertype/JSON to see if it helps to improve the format of Durations

Here is an example of what I was doing in other places to fix another problem:

MinDelay time.Duration `yaml:"min_delay,omitempty" json:"min_delay" swaggertype:"primitive,integer"`

@roma-glushko
Copy link
Member

Gonna close this PR in favour of #202. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api:http type:bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔧 Render Durations in a human-friendly way
2 participants