예제 #1
0
def newconsensus_listener(event):
    """Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

    @param event: The NEWCONSENSUS event. Not used by the function.
    """
    
    logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
    updaters.run_all()
예제 #2
0
def newconsensus_listener(event):
    """
    Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

    @param event: The NEWCONSENSUS event. Not used by the function.
    """

    logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
    updaters.run_all()
예제 #3
0
    def new_consensus_event(self, event):
        """Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

        @param event: The NEWCONSENSUS event. Not used by the function,
                      but included so that this overrides 
                      C{TorCtl.EventHandler.new_consensus_event}
        """

        logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
        updaters.run_all()
예제 #4
0
    def new_consensus_event(self, event):
        """Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

        @param event: The NEWCONSENSUS event. Not used by the function,
                      but included so that this overrides 
                      C{TorCtl.EventHandler.new_consensus_event}
        """

        logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
        updaters.run_all()