@@ -302,7 +302,7 @@ class _EventDownlinkModel(_DownlinkModel):
302
302
303
303
async def _establish_downlink (self ) -> None :
304
304
link_request = _LinkRequest (self .node_uri , self .lane_uri )
305
- await self .connection ._send_message (await link_request ._to_recon ())
305
+ await self .connection ._send_message (link_request ._to_recon ())
306
306
307
307
async def _receive_event (self , message : _Envelope ) -> None :
308
308
converter = RecordConverter .get_converter ()
@@ -359,7 +359,7 @@ def __init__(self, client: 'SwimClient') -> None:
359
359
360
360
async def _establish_downlink (self ) -> None :
361
361
sync_request = _SyncRequest (self .node_uri , self .lane_uri )
362
- await self .connection ._send_message (await sync_request ._to_recon ())
362
+ await self .connection ._send_message (sync_request ._to_recon ())
363
363
364
364
async def _receive_event (self , message : '_Envelope' ) -> None :
365
365
await self .__set_value (message )
@@ -374,7 +374,7 @@ async def _send_message(self, message: '_Envelope') -> None:
374
374
:param message: - Message to send to the remote agent.
375
375
"""
376
376
await self .linked .wait ()
377
- await self .connection ._send_message (await message ._to_recon ())
377
+ await self .connection ._send_message (message ._to_recon ())
378
378
379
379
async def _get_value (self ) -> Any :
380
380
"""
@@ -501,7 +501,7 @@ def __init__(self, client: 'SwimClient') -> None:
501
501
502
502
async def _establish_downlink (self ) -> None :
503
503
sync_request = _SyncRequest (self .node_uri , self .lane_uri )
504
- await self .connection ._send_message (await sync_request ._to_recon ())
504
+ await self .connection ._send_message (sync_request ._to_recon ())
505
505
506
506
async def _receive_event (self , message : '_Envelope' ) -> None :
507
507
if message ._body ._tag == 'update' :
@@ -519,7 +519,7 @@ async def _send_message(self, message: '_Envelope') -> None:
519
519
:param message: - Message to send to the remote agent.
520
520
"""
521
521
await self .linked .wait ()
522
- await self .connection ._send_message (await message ._to_recon ())
522
+ await self .connection ._send_message (message ._to_recon ())
523
523
524
524
async def _get_value (self , key ) -> Any :
525
525
"""
@@ -547,7 +547,7 @@ async def __receive_update(self, message: '_Envelope') -> None:
547
547
self .downlink_manager .registered_classes ,
548
548
self .downlink_manager .strict )
549
549
550
- recon_key = await Recon .to_string (message ._body ._get_head ().value ._get_head ().value )
550
+ recon_key = Recon .to_string (message ._body ._get_head ().value ._get_head ().value )
551
551
old_value = await self ._get_value (recon_key )
552
552
553
553
self ._map [recon_key ] = (key , value )
@@ -558,7 +558,7 @@ async def __receive_remove(self, message: '_Envelope') -> None:
558
558
self .downlink_manager .registered_classes ,
559
559
self .downlink_manager .strict )
560
560
561
- recon_key = await Recon .to_string (message ._body ._get_head ().value ._get_head ().value )
561
+ recon_key = Recon .to_string (message ._body ._get_head ().value ._get_head ().value )
562
562
old_value = self ._map .pop (recon_key , (Value .absent (), Value .absent ()))[1 ]
563
563
564
564
await self .downlink_manager ._subscribers_did_remove (key , old_value )
0 commit comments