We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0726cc5 commit 5661d41Copy full SHA for 5661d41
Sources/AlgoliaSearchClient/Transport/RetryStrategy/RetryableHost.swift
@@ -91,17 +91,6 @@ extension RetryableHost: CustomDebugStringConvertible {
91
92
}
93
94
-extension RetryableHost {
95
-
96
- func timeout(requestOptions: RequestOptions? = nil, default: TimeInterval) -> TimeInterval {
97
- let callType: CallType = supportedCallTypes.contains(.write) ? .write : .read
98
- let unitTimeout = requestOptions?.timeout(for: callType) ?? `default`
99
- let multiplier = retryCount + 1
100
- return TimeInterval(multiplier) * unitTimeout
101
- }
102
103
-}
104
105
extension Array where Element == RetryableHost {
106
107
/** Reset all hosts down for more than specified interval.
0 commit comments