def _AddSink(self, endpoint, sink_factory):
    """Invoked when a node is added to the underlying server set.

    If the number of healthy nodes is < the minimum aperture size, the node
    will be added to the aperture, otherwise it will be added to the idle channel
    list.

    Args:
      endpoint - The endpoint being added to the server set.
      sink_factory - A callable used to create a sink for the endpoint.
    """
    num_healthy = len([c for c in self._heap[1:] if c.channel.is_open])
    if self._min_size < num_healthy:
      super(ApertureBalancerSink, self)._AddSink(endpoint, sink_factory)
    else:
      self._idle_endpoints.add(endpoint)
    self._UpdateSizeVarz()
dataset/ETHPy150Open steveniemitz/scales/scales/loadbalancer/aperture.py/ApertureBalancerSink._AddSink/swapped operands of `<`