(self, node, weight=1)
Adds node to circle and rebuild it.
Adds node to circle and rebuild it.
Adds node to circle and rebuild it .
def add_node(self, node, weight=1):
        """
            Adds node to circle and rebuild it.
        """
        self._nodes.add(node)
        self._weights[node] = weight
        self._hashring = dict()
        self._sorted_keys = []

        self._build_circle()
def add_node ( self , node , weight = 1 ) : self . _nodes . add ( node ) self . _weights [ node ] = weight self . _hashring = dict ( ) self . _sorted_keys = [ ] self . _build_circle ( )