Skip to content

Commit 6e732a5

Browse files
committed
Remove NSEC_PER_SEC since non-Darwin don't have it
1 parent f8fe8d4 commit 6e732a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/Realtime/V2/RealtimeClientV2.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import ConcurrencyExtras
99
import Foundation
1010
@_spi(Internal) import _Helpers
11-
import Dispatch
1211

1312
#if canImport(FoundationNetworking)
1413
import FoundationNetworking
@@ -242,7 +241,7 @@ public actor RealtimeClientV2 {
242241
guard let self else { return }
243242

244243
while !Task.isCancelled {
245-
try? await Task.sleep(nanoseconds: NSEC_PER_SEC * UInt64(config.heartbeatInterval))
244+
try? await Task.sleep(nanoseconds: 1_000_000_000 * UInt64(config.heartbeatInterval))
246245
if Task.isCancelled {
247246
break
248247
}

0 commit comments

Comments
 (0)