File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
FirebaseCore/Internal/Sources/HeartbeatLogging Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,17 @@ final class HeartbeatStorage: HeartbeatStorageProtocol {
5151 // MARK: - Instance Management
5252
5353 /// Statically allocated cache of `HeartbeatStorage` instances keyed by string IDs.
54- private nonisolated ( unsafe) static var cachedInstances : [
55- String : WeakContainer < HeartbeatStorage >
56- ] =
57- [ : ]
54+ #if compiler(>=6)
55+ private nonisolated ( unsafe) static var cachedInstances : [
56+ String : WeakContainer < HeartbeatStorage >
57+ ] =
58+ [ : ]
59+ #else
60+ private static var cachedInstances : [
61+ String : WeakContainer < HeartbeatStorage >
62+ ] =
63+ [ : ]
64+ #endif // compiler(>=6)
5865
5966 /// Used to synchronize concurrent access to the `cachedInstances` property.
6067 private static let instancesLock = NSLock ( )
You can’t perform that action at this time.
0 commit comments