Remove missing peer error from connection manager (#1409)

This commit is contained in:
Jonathan Zernik 2021-09-24 09:09:59 -07:00 committed by GitHub
parent 4922e82a38
commit a16dd32549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,8 +135,6 @@ class ConnectionManager(object):
"""
with self.peers_lock:
if not self.has_connection(peer.remote_address):
# logger.debug('Failed to remove peer {}'.format(peer))
# raise MissingPeerError()
return
del self._peers[peer.remote_address]
logger.debug('Removed peer {}'.format(peer))
@ -184,9 +182,5 @@ class DuplicateNonceError(Exception):
pass
# class MissingPeerError(Exception):
# pass
class NotAcceptingConnectionsError(Exception):
pass