Skip to content

Commit 7cf4a81

Browse files
committed
style(): fix ruff errors
1 parent 2175a80 commit 7cf4a81

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • src/tgdb/main/common

src/tgdb/main/common/di.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,18 @@ async def provide_buffer(
172172
config: TgdbConfig,
173173
bot_pool: BotPool,
174174
user_bot_pool: UserBotPool,
175-
buffer: InMemoryBuffer[Commit | PreparedCommit],
175+
in_memory_buffer: InMemoryBuffer[Commit | PreparedCommit],
176176
) -> AsyncIterator[Buffer[Commit | PreparedCommit]]:
177177
in_tg_bytes = InTelegramBytes(
178178
bot_pool, user_bot_pool, config.buffer.chat
179179
)
180180

181-
biffer = InTelegramReplicablePreparedCommitBuffer(buffer, in_tg_bytes)
181+
buffer = InTelegramReplicablePreparedCommitBuffer(
182+
in_memory_buffer, in_tg_bytes
183+
)
182184

183-
async with biffer:
184-
yield biffer
185+
async with buffer:
186+
yield buffer
185187

186188
@provide(
187189
scope=Scope.APP,

0 commit comments

Comments
 (0)