@@ -53,10 +53,10 @@ export function createTransporter({
5353 } )
5454 ) ;
5555 const hostsUp = statefulHosts . filter ( ( host ) => host . isUp ( ) ) ;
56- const hostsTimeouted = statefulHosts . filter ( ( host ) => host . isTimedout ( ) ) ;
56+ const hostsTimedOut = statefulHosts . filter ( ( host ) => host . isTimedOut ( ) ) ;
5757
58- // Note, we put the hosts that previously timeouted on the end of the list.
59- const hostsAvailable = [ ...hostsUp , ...hostsTimeouted ] ;
58+ // Note, we put the hosts that previously timed out on the end of the list.
59+ const hostsAvailable = [ ...hostsUp , ...hostsTimedOut ] ;
6060 const compatibleHostsAvailable =
6161 hostsAvailable . length > 0 ? hostsAvailable : compatibleHosts ;
6262
@@ -65,19 +65,19 @@ export function createTransporter({
6565 getTimeout ( timeoutsCount : number , baseTimeout : number ) : number {
6666 /**
6767 * Imagine that you have 4 hosts, if timeouts will increase
68- * on the following way: 1 (timeouted ) > 4 (timeouted ) > 5 (200).
68+ * on the following way: 1 (timed out ) > 4 (timed out ) > 5 (200).
6969 *
7070 * Note that, the very next request, we start from the previous timeout.
7171 *
72- * 5 (timeouted ) > 6 (timeouted ) > 7 ...
72+ * 5 (timed out ) > 6 (timed out ) > 7 ...
7373 *
7474 * This strategy may need to be reviewed, but is the strategy on the our
7575 * current v3 version.
7676 */
7777 const timeoutMultiplier =
78- hostsTimeouted . length === 0 && timeoutsCount === 0
78+ hostsTimedOut . length === 0 && timeoutsCount === 0
7979 ? 1
80- : hostsTimeouted . length + 3 + timeoutsCount ;
80+ : hostsTimedOut . length + 3 + timeoutsCount ;
8181
8282 return timeoutMultiplier * baseTimeout ;
8383 } ,
@@ -204,7 +204,7 @@ export function createTransporter({
204204 */
205205 await hostsCache . set (
206206 host ,
207- createStatefulHost ( host , response . isTimedOut ? 'timedout ' : 'down' )
207+ createStatefulHost ( host , response . isTimedOut ? 'timed out ' : 'down' )
208208 ) ;
209209
210210 return retry ( retryableHosts , getTimeout ) ;
0 commit comments