Skip to content

Commit 7619069

Browse files
committed
Small fixes
1 parent 4b9fedf commit 7619069

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

FirebaseRemoteConfig/SwiftNew/ConfigSettings.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ let RCNHTTPDefaultConnectionTimeout: TimeInterval = 60
179179
.currentRealtimeThrottlingRetryIntervalSeconds
180180
realtimeRetryCount = _userDefaultsManager.realtimeRetryCount
181181

182-
// Swift implementation specific.
183182
_lastFetchError = RemoteConfigError(.unknown)
184183
exponentialBackoffRetryInterval = 0
185184
_fetchTimeout = 0
@@ -588,6 +587,6 @@ let RCNHTTPDefaultConnectionTimeout: TimeInterval = 60
588587
@objc public func shouldThrottle() -> Bool {
589588
let now = Date().timeIntervalSince1970
590589
return lastFetchTimeInterval > 0 && lastFetchStatus != .success &&
591-
(exponentialBackoffThrottleEndTime ?? 0) - now > 0
590+
exponentialBackoffThrottleEndTime - now > 0
592591
}
593592
}

0 commit comments

Comments
 (0)