We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0abc16 commit 181f2b6Copy full SHA for 181f2b6
app/routes/issuer.py
@@ -1,4 +1,5 @@
1
import asyncio
2
+import os
3
from typing import List, Optional
4
from uuid import UUID
5
@@ -41,6 +42,9 @@
41
42
43
router = APIRouter(prefix="/v1/issuer/credentials", tags=["issuer"])
44
45
+# Config for /publish-revocations
46
+publish_revocations_timeout_seconds = int(os.getenv("PUBLISH_REVOCATIONS_TIMEOUT", 60))
47
+
48
49
@router.post("", summary="Send Holder a Credential", response_model=CredentialExchange)
50
async def send_credential(
@@ -672,7 +676,7 @@ async def publish_revocations(
672
676
field_name="state",
673
677
expected_value="transaction_acked",
674
678
logger=bound_logger,
675
- max_attempts=45,
679
+ max_attempts=publish_revocations_timeout_seconds,
680
retry_delay=1,
681
)
682
except asyncio.TimeoutError as e:
0 commit comments