Exemplo n.º 1
0
    def __init__(self, logfeed_program: LogFeed, logfeed_process: LogFeed,
                 time_env: TimeEnv) -> None:
        super().__init__(logfeed_program=logfeed_program,
                         logfeed_process=logfeed_process,
                         time_env=time_env)

        # Private variables
        self.next_api_call = time_env.now()
        self.rate_limit_wait = 0
    def __init__(self, logfeed_program: LogFeed, logfeed_process: LogFeed, time_env: TimeEnv) -> None:
        super().__init__(logfeed_program=logfeed_program,
                         logfeed_process=logfeed_process,
                         time_env=time_env)

        # Private variables
        self.next_api_call = time_env.now()
        self.rate_limit_wait = 0

        # Timings variables
        self.timings_total = []
        self.timings_basket = []
        self.timings_fetch = []
        self.timings_parse = []
        self.timings_avg_block1 = []
        self.timings_avg_block2 = []
        self.timings_avg_block3 = []
        self.debug_msgs = []