Skip to content

Commit 01d62cf

Browse files
committed
silence publish warnings
1 parent 010c28e commit 01d62cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/LiveKit/Participant/LocalParticipant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,14 @@ public class LocalParticipant: Participant {
227227

228228
/// publish a new audio track to the Room
229229
@objc
230+
@discardableResult
230231
public func publish(audioTrack: LocalAudioTrack, publishOptions: AudioPublishOptions? = nil) async throws -> LocalTrackPublication {
231232
try await publish(track: audioTrack, publishOptions: publishOptions)
232233
}
233234

234235
/// publish a new video track to the Room
235236
@objc
237+
@discardableResult
236238
public func publish(videoTrack: LocalVideoTrack, publishOptions: VideoPublishOptions? = nil) async throws -> LocalTrackPublication {
237239
try await publish(track: videoTrack, publishOptions: publishOptions)
238240
}

0 commit comments

Comments
 (0)