Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Jan 2, 2024
1 parent 54421f8 commit 0dc2142
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ async def insert_report(session: AsyncSession, data: dict):
...


def log_speed(
counter: int, start_time: float, receive_queue: Queue
) -> tuple[float, int]:
end_time = time.time()
delta_time = end_time - start_time
speed = counter / delta_time
logger.info(
f"qsize={receive_queue.qsize()}, processed {counter} in {delta_time:.2f} seconds, {speed:.2f} msg/sec"
)
return time.time(), 0


# Define a function to process data from a queue
async def process_data(receive_queue: Queue, error_queue: Queue):
# Initialize counter and start time
Expand Down

0 comments on commit 0dc2142

Please sign in to comment.