From 767edfa606c79fc5c145d232b57af657e0974e27 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 5 Apr 2026 15:07:00 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index cbd3af8..dffbea5 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -186,12 +186,12 @@ where a.llmid = b.id lus.append(r) return lus - async def backend_accounting(): - env = ServerEnv() - debug(f'backend accounting started ...') - while True: - lus = await get_accounting_llmusages() - for lu in lus: - await llm_accounting(lu) - await asyncio.sleep(0.1) +async def backend_accounting(): + env = ServerEnv() + debug(f'backend accounting started ...') + while True: + lus = await get_accounting_llmusages() + for lu in lus: + await llm_accounting(lu) + await asyncio.sleep(0.1)