Adressing response time errors.
This commit is contained in:
parent
b3d8adec7e
commit
6e9bb2a5f8
@ -155,11 +155,14 @@ Invidious >> region: countryISOCode [
|
||||
|
||||
{ #category : #accessing }
|
||||
Invidious >> responseTime [
|
||||
^ [ ZnClient new
|
||||
| responseEvaluation |
|
||||
responseEvaluation := [ ZnClient new
|
||||
beOneShot;
|
||||
url: self uri;
|
||||
get;
|
||||
response ] timeToRun
|
||||
response ].
|
||||
[ ^ responseEvaluation timeToRun ] onErrorDo: [ ^ 1 class maxVal asDuration "Internal convention for max duration when an error raises." ].
|
||||
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
|
Loading…
Reference in New Issue
Block a user