code: def connect_success(self, connection_id):
          
          endpoint = self._network.connection_id_to_endpoint(connection_id)
          endpoint_info = self._temp_endpoints.get(endpoint)
  
          LOGGER.debug("Endpoint has completed authorization: %s (id: %s)",
                       endpoint,
                       connection_id)
          if endpoint_info is None:
              LOGGER.debug("Received unknown endpoint: %s", endpoint)
  
          elif endpoint_info.status == EndpointStatus.PEERING:
              self._connect_success_peering(connection_id, endpoint)
  
          elif endpoint_info.status == EndpointStatus.TOPOLOGY:
              self._connect_success_topology(connection_id)
  
          else:
              LOGGER.debug("Endpoint has unknown status: %s", endpoint)
  
          with self._lock:
              if endpoint in self._temp_endpoints:
                  del self._temp_endpoints[endpoint]
docs: Check to see if the successful connection is meant to be peered with.
          If not, it should be used to get the peers from the endpoint.