def METHOD_NAME(self, msg_hash: bytes, peer):
    if msg_hash in self.requested_hash:
        message_request = self.requested_hash[msg_hash]
        if peer in message_request.peers_connection_list:
            message_request.peers_connection_list.remove(peer)
            if not message_request.peers_connection_list:
                del self.requested_hash[msg_hash]