We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ruff
1 parent 2175a80 commit 7cf4a81Copy full SHA for 7cf4a81
1 file changed
src/tgdb/main/common/di.py
@@ -172,16 +172,18 @@ async def provide_buffer(
172
config: TgdbConfig,
173
bot_pool: BotPool,
174
user_bot_pool: UserBotPool,
175
- buffer: InMemoryBuffer[Commit | PreparedCommit],
+ in_memory_buffer: InMemoryBuffer[Commit | PreparedCommit],
176
) -> AsyncIterator[Buffer[Commit | PreparedCommit]]:
177
in_tg_bytes = InTelegramBytes(
178
bot_pool, user_bot_pool, config.buffer.chat
179
)
180
181
- biffer = InTelegramReplicablePreparedCommitBuffer(buffer, in_tg_bytes)
+ buffer = InTelegramReplicablePreparedCommitBuffer(
182
+ in_memory_buffer, in_tg_bytes
183
+ )
184
- async with biffer:
- yield biffer
185
+ async with buffer:
186
+ yield buffer
187
188
@provide(
189
scope=Scope.APP,
0 commit comments