mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Make Mplex and SwarmConn not Service
After second thoughts, they seem not a good candidate of `Service`. The shutdown logic becomes simpler by making them not `Service`.
This commit is contained in:
@ -188,9 +188,7 @@ class MplexStream(IMuxedStream):
|
||||
if self.is_initiator
|
||||
else HeaderTags.ResetReceiver
|
||||
)
|
||||
self.muxed_conn.manager.run_task(
|
||||
self.muxed_conn.send_message, flag, None, self.stream_id
|
||||
)
|
||||
await self.muxed_conn.send_message(flag, None, self.stream_id)
|
||||
|
||||
self.event_local_closed.set()
|
||||
self.event_remote_closed.set()
|
||||
|
||||
Reference in New Issue
Block a user