Skip to content

Commit f2d7ca2

Browse files
committed
Fix: Re-Format files
Signed-off-by: jamshale <jamiehalebc@gmail.com>
1 parent b9e9830 commit f2d7ca2

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

acapy_agent/admin/server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,23 +216,23 @@ async def upgrade_middleware(request: web.BaseRequest, handler: Coroutine):
216216
# We need to check for completion (or fail) in another process
217217
in_progress_upgrades.set_wallet(context.profile.name)
218218
is_subwallet = context.metadata and "wallet_id" in context.metadata
219-
219+
220220
# Create background task and store reference to prevent garbage collection
221221
task = asyncio.create_task(
222222
check_upgrade_completion_loop(
223223
context.profile,
224224
is_subwallet,
225225
)
226226
)
227-
227+
228228
# Store task reference on the app to prevent garbage collection
229-
if not hasattr(request.app, '_background_tasks'):
229+
if not hasattr(request.app, "_background_tasks"):
230230
request.app._background_tasks = set()
231231
request.app._background_tasks.add(task)
232-
232+
233233
# Remove task from set when it completes to prevent memory leaks
234234
task.add_done_callback(request.app._background_tasks.discard)
235-
235+
236236
raise web.HTTPServiceUnavailable(reason="Upgrade in progress")
237237

238238
return await handler(request)

acapy_agent/wallet/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ async def upgrade_anoncreds(request: web.BaseRequest):
13991399
upgrade_wallet_to_anoncreds_if_requested(profile, is_subwallet)
14001400
)
14011401
# Store task reference to prevent garbage collection
1402-
if not hasattr(profile, '_background_tasks'):
1402+
if not hasattr(profile, "_background_tasks"):
14031403
profile._background_tasks = set()
14041404
profile._background_tasks.add(task)
14051405
# Remove task from set when it completes to prevent memory leaks

0 commit comments

Comments
 (0)