Skip to content

Commit b710669

Browse files
committed
Fix linter errors
1 parent 2f857b6 commit b710669

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Sources/StreamVideo/StreamVideo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
import StreamWebRTC
88
import SwiftProtobuf
99

10-
public typealias UserTokenProvider = @Sendable (@Sendable @escaping(Result<UserToken, Error>) -> Void) -> Void
10+
public typealias UserTokenProvider = @Sendable (@Sendable @escaping (Result<UserToken, Error>) -> Void) -> Void
1111
public typealias UserTokenUpdater = @Sendable (UserToken) -> Void
1212

1313
/// Main class for interacting with the `StreamVideo` SDK.

Sources/StreamVideo/WebSockets/Events/EventBatcher.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
/// The type that does events batching.
88
protocol EventBatcher: Sendable {
99
typealias Batch = [WrappedEvent]
10-
typealias BatchHandler = @Sendable (_ batch: Batch, _ completion: @Sendable @escaping() -> Void) -> Void
10+
typealias BatchHandler = @Sendable (_ batch: Batch, _ completion: @Sendable @escaping () -> Void) -> Void
1111

1212
/// The current batch of events.
1313
var currentBatch: Batch { get }
@@ -35,7 +35,7 @@ final class Batcher<Item> {
3535
/// The timer that calls `processor` when fired.
3636
private var batchProcessingTimer: TimerControl?
3737
/// The closure which processes the batch.
38-
private let handler: @Sendable (_ batch: [Item], _ completion: @Sendable @escaping() -> Void) -> Void
38+
private let handler: @Sendable (_ batch: [Item], _ completion: @Sendable @escaping () -> Void) -> Void
3939
/// The serial queue where item appends and batch processing is happening on.
4040
private let queue = DispatchQueue(label: "io.getstream.Batch.\(Item.self)")
4141
/// The current batch of items.

StreamVideoTests/Mock/EventBatcher_Mock.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import protocol StreamVideo.Timer
99
final class EventBatcher_Mock: EventBatcher, @unchecked Sendable {
1010
var currentBatch: [WrappedEvent] = []
1111

12-
let handler: @Sendable (_ batch: [WrappedEvent], _ completion: @escaping @Sendable() -> Void) -> Void
12+
let handler: @Sendable (_ batch: [WrappedEvent], _ completion: @escaping @Sendable () -> Void) -> Void
1313

1414
init(
1515
period: TimeInterval = 0,
1616
timerType: Timer.Type = DefaultTimer.self,
17-
handler: @escaping @Sendable (_ batch: [WrappedEvent], _ completion: @escaping @Sendable() -> Void) -> Void
17+
handler: @escaping @Sendable (_ batch: [WrappedEvent], _ completion: @escaping @Sendable () -> Void) -> Void
1818
) {
1919
self.handler = handler
2020
}

0 commit comments

Comments
 (0)