@@ -193,9 +193,7 @@ def publisher_identity(self) -> str:
193193 """Identity of the participant who published the track."""
194194 return self ._publisher_identity
195195
196- async def subscribe (
197- self , * , buffer_size : Optional [int ] = None
198- ) -> DataTrackSubscription :
196+ async def subscribe (self , * , buffer_size : Optional [int ] = None ) -> DataTrackSubscription :
199197 """Subscribes to the data track to receive frames.
200198
201199 Args:
@@ -221,8 +219,7 @@ async def subscribe(
221219 try :
222220 resp = FfiClient .instance .request (req )
223221 cb : proto_ffi .FfiEvent = await queue .wait_for (
224- lambda e : e .subscribe_data_track .async_id
225- == resp .subscribe_data_track .async_id
222+ lambda e : e .subscribe_data_track .async_id == resp .subscribe_data_track .async_id
226223 )
227224 finally :
228225 FfiClient .instance .queue .unsubscribe (queue )
@@ -259,9 +256,7 @@ class DataTrackSubscription:
259256 Dropping or closing the subscription unsubscribes from the track.
260257 """
261258
262- def __init__ (
263- self , owned_info : proto_data_track .OwnedDataTrackSubscription
264- ) -> None :
259+ def __init__ (self , owned_info : proto_data_track .OwnedDataTrackSubscription ) -> None :
265260 self ._ffi_handle = FfiHandle (owned_info .handle .id )
266261 handle_id = owned_info .handle .id
267262
@@ -303,9 +298,7 @@ async def __anext__(self) -> DataTrackFrame:
303298
304299 def _send_read_request (self ) -> None :
305300 req = proto_ffi .FfiRequest ()
306- req .data_track_subscription_read .subscription_handle = (
307- self ._ffi_handle .handle
308- )
301+ req .data_track_subscription_read .subscription_handle = self ._ffi_handle .handle
309302 FfiClient .instance .request (req )
310303
311304 def _close (self ) -> None :
0 commit comments