Skip to content

Commit 5661d41

Browse files
chore: remove dead timeout function from RetryableHost (#819)
1 parent 0726cc5 commit 5661d41

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Sources/AlgoliaSearchClient/Transport/RetryStrategy/RetryableHost.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,6 @@ extension RetryableHost: CustomDebugStringConvertible {
9191

9292
}
9393

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-
10594
extension Array where Element == RetryableHost {
10695

10796
/** Reset all hosts down for more than specified interval.

0 commit comments

Comments
 (0)