PR feedback

- Use f-string
- Fix wrongly indented comments
- Add dep `trio-typing`
This commit is contained in:
mhchia
2020-01-28 15:48:41 +08:00
parent 095a848f30
commit e57d01f360
3 changed files with 3 additions and 2 deletions

View File

@ -60,9 +60,9 @@ class SwarmConn(INetConn):
while True:
try:
stream = await self.muxed_conn.accept_stream()
# Asynchronously handle the accepted stream, to avoid blocking the next stream.
except MuxedConnUnavailable:
break
# Asynchronously handle the accepted stream, to avoid blocking the next stream.
self.swarm.manager.run_task(self._handle_muxed_stream, stream)
await self.close()