Skip to content

Commit

Permalink
Merge pull request #492 from didx-xyz/fix/retry-configuring-endorser
Browse files Browse the repository at this point in the history
🎨 refactor onboarding and 🐛 fix setting of endorser metadata
  • Loading branch information
ff137 authored Oct 9, 2023
2 parents d5c3af0 + 6df22f1 commit 3f87020
Show file tree
Hide file tree
Showing 15 changed files with 705 additions and 558 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
junit.xml

# Translations
*.mo
Expand Down
7 changes: 5 additions & 2 deletions app/event_handling/sse_listener.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
from typing import Any, Dict

import httpx

Expand Down Expand Up @@ -26,7 +27,7 @@ def __init__(
self.wallet_id = wallet_id
self.topic = topic

async def wait_for_state(self, desired_state, timeout: int = 120):
async def wait_for_state(self, desired_state, timeout: int = 120) -> Dict[str, Any]:
"""
Start listening for SSE events. When an event is received that matches the specified parameters.
"""
Expand All @@ -46,7 +47,9 @@ async def wait_for_state(self, desired_state, timeout: int = 120):

raise SseListenerTimeout("Event with request state was not returned by server.")

async def wait_for_event(self, field, field_id, desired_state, timeout: int = 120):
async def wait_for_event(
self, field, field_id, desired_state, timeout: int = 120
) -> Dict[str, Any]:
"""
Start listening for SSE events. When an event is received that matches the specified parameters.
"""
Expand Down
2 changes: 1 addition & 1 deletion app/routes/admin/tenants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
UpdateTenantRequest,
WalletListWithGroups,
)
from app.services.onboarding import handle_tenant_update, onboard_tenant
from app.services.onboarding.tenants import handle_tenant_update, onboard_tenant
from app.services.trust_registry import (
Actor,
TrustRegistryException,
Expand Down
Loading

0 comments on commit 3f87020

Please sign in to comment.