Remove dead code.

This commit is contained in:
Yuxin Wang 2018-10-09 21:15:48 -04:00
parent be6ad63795
commit f3eb11b138

View file

@ -142,9 +142,6 @@ class Peer(MessageServer):
for chunknum in range(total_chunknum):
for peer_address, possessed_chunks in chunkinfo.items():
if chunknum in possessed_chunks:
if peer_address not in peers:
peers[peer_address] = await asyncio.open_connection(*json.loads(peer_address), loop=self._loop)
# write the message to ask for the chunk
asyncio.ensure_future(self._write_message(peers[peer_address][1], {
'type': MessageType.PEER_REQUEST_CHUNK,