-
Notifications
You must be signed in to change notification settings - Fork 252
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
chore(market)_: Increase market timouts to 20s #6386
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (112)
|
ccd3187
to
ffdf9a1
Compare
circuitbreaker/circuit_breaker.go
Outdated
StartTime time.Time | ||
Duration time.Duration | ||
Err error | ||
IsTimeoutErr bool |
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.
hmm it looks weird to have this additional field when we've got the error itself, why not check the error for specific values wherever we need it?
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.
fixed
(initially I added this separately because it includes the hystrix error check). But on second thought, it's OK to make a function for this. Same for the duration
ffdf9a1
to
b8c35ce
Compare
b8e791b
to
a6ac483
Compare
155a23c
to
fc5ec3e
Compare
5380b2a
to
be94d81
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6386 +/- ##
===========================================
+ Coverage 60.93% 61.09% +0.15%
===========================================
Files 874 874
Lines 112386 112473 +87
===========================================
+ Hits 68488 68711 +223
+ Misses 35907 35766 -141
- Partials 7991 7996 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f2bc689
to
b437a71
Compare
@@ -45,9 +79,14 @@ func (c *HTTPClient) DoGetRequest(ctx context.Context, url string, params netUrl | |||
} | |||
|
|||
var resp *http.Response | |||
for i := 0; i < maxNumOfRequestRetries; i++ { | |||
maxRetries := c.maxRetries | |||
if maxRetries <= 0 { |
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.
I'd expect 0 retries to mean 0 retries, can we use just negatives to set the default value?
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.
or maybe rename number of attempts?
b437a71
to
e20db63
Compare
* Can be tested with `FetchTokenDetails` on limited network (less than 1mbps) * updated /rpc/network in codeowners * chore(circuit-breaker)_: log request duration * chore(rpc-health-manager)_: add API method to get rpc stats * chore_: add total error count * chore_: fix double slash in http urls fixes status-im/status-mobile#22203
e20db63
to
55e79f9
Compare
Main changes:
market.go
- increased timeout for a market request (see details Zero balances in wallet status-mobile#22203 (comment))wallet/thirdparty/http_client.go
- increase timeout from 5 seconds total to (5-5-5-60)Added more diagnostic information:
circuit_breaker.go
- log additional responseSize (if any), duration, timeout cancellationFixes status-im/status-mobile#22203