We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dfb550 commit d317a25Copy full SHA for d317a25
app/routes/revocation.py
@@ -1,4 +1,5 @@
1
import asyncio
2
+import os
3
from typing import Optional
4
5
from aries_cloudcontroller import IssuerCredRevRecord, RevRegWalletUpdatedResult
@@ -23,6 +24,9 @@
23
24
25
router = APIRouter(prefix="/v1/issuer/credentials", tags=["revocation"])
26
27
+# Config for /publish-revocations
28
+publish_revocations_timeout_seconds = int(os.getenv("PUBLISH_REVOCATIONS_TIMEOUT", 60))
29
+
30
31
@router.post("/revoke", summary="Revoke a Credential (if revocable)")
32
async def revoke_credential(
@@ -209,7 +213,7 @@ async def publish_revocations(
209
213
field_name="state",
210
214
expected_value="transaction_acked",
211
215
logger=bound_logger,
212
- max_attempts=30,
216
+ max_attempts=publish_revocations_timeout_seconds,
217
retry_delay=1,
218
)
219
except asyncio.TimeoutError as e:
0 commit comments