def _set_req_handlers(self):
    node_msg_router = self.node.nodeMsgRouter
    replica_msg_router = self.replica.inBoxRouter
    if (ViewChangeStartMessage not in node_msg_router.routes):
        processor = partial(VCStartMsgStrategy.on_view_change_started, self.node)
        node_msg_router.add((ViewChangeStartMessage, processor))
    if (ViewChangeContinueMessage not in replica_msg_router.routes):
        processor = partial(VCStartMsgStrategy.on_view_change_continued, self.replica)
        replica_msg_router.add((ViewChangeContinueMessage, processor))
def _set_req_handlers(self):
    node_msg_router = self.node.nodeMsgRouter
    replica_msg_router = self.replica.inBoxRouter
    if (ViewChangeStartMessage not in node_msg_router.routes):
        processor = partial(VCStartMsgStrategy.on_view_change_started, self.node)
        node_msg_router.add((ViewChangeStartMessage, processor))
    if (ViewChangeContinueMessage not in replica_msg_router.routes):
        processor = partial(VCStartMsgStrategy.on_view_change_continued, self.replica)
        replica_msg_router.add((ViewChangeContinueMessage, processor))