Skip to content

Commit 69959c7

Browse files
Update Sources/LiveViewNative/Coordinators/LiveSessionConfiguration.swift
Co-authored-by: Carson Katri <[email protected]> Signed-off-by: mobile-bungalow <[email protected]>
1 parent 7619da0 commit 69959c7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Sources/LiveViewNative/Coordinators/LiveSessionConfiguration.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,20 @@ public struct LiveSessionConfiguration {
102102
}
103103

104104

105-
internal final class ReconnectStrategyAdapter: SocketReconnectStrategy {
106-
105+
final class ReconnectStrategyAdapter: SocketReconnectStrategy {
107106
private let behavior: LiveSessionConfiguration.ReconnectBehavior
108107

109-
public init(_ behavior: LiveSessionConfiguration.ReconnectBehavior) {
108+
init(_ behavior: LiveSessionConfiguration.ReconnectBehavior) {
110109
self.behavior = behavior
111110
}
112111

113-
public func sleepDuration(_ attempt: UInt64) -> TimeInterval {
114-
112+
func sleepDuration(_ attempt: UInt64) -> TimeInterval {
115113
guard let delay = behavior.delay else {
116114
return TimeInterval.greatestFiniteMagnitude
117115
}
118116

119117
let safeAttempt = min(Int(attempt), Int.max)
120118
return delay(safeAttempt)
121119
}
122-
123-
124120
}
125121

0 commit comments

Comments
 (0)