Move calls to Notifee inside Swarm

This commit is contained in:
mhchia
2019-09-23 15:01:58 +08:00
parent 6f8394e4bd
commit 8d2415a404
3 changed files with 39 additions and 22 deletions

View File

@ -68,5 +68,5 @@ class NetStream(INetStream):
await self.muxed_stream.reset()
# TODO: `remove`: Called by close and write when the stream is in specific states.
# It notify `ClosedStream` after `SwarmConn.remove_stream` is called.
# It notifies `ClosedStream` after `SwarmConn.remove_stream` is called.
# Reference: https://github.com/libp2p/go-libp2p-swarm/blob/99831444e78c8f23c9335c17d8f7c700ba25ca14/swarm_stream.go # noqa: E501