Remove irrelevant TODOs and add more logging

This commit is contained in:
Lonami Exo
2018-10-04 17:50:56 +02:00
parent a5d4e97922
commit 7e7bbcf4c0
3 changed files with 13 additions and 5 deletions

View File

@@ -343,7 +343,6 @@ class MTProtoSender:
if state_list is None:
break
# TODO Debug logs to notify which messages are being sent
# TODO Try sending them while no future was cancelled?
# TODO Handle cancelled?, arbitrary errors
await self._connection.send(state_list)
@@ -362,7 +361,6 @@ class MTProtoSender:
Besides `connect`, only this method ever receives data.
"""
while self._user_connected and not self._reconnecting:
# TODO handle incomplete read?
__log__.debug('Receiving items from the network...')
try:
message = await self._connection.recv()