Skip to content

Commit 1999a6c

Browse files
committed
fix(tvm): update timeouts
1 parent e237cd4 commit 1999a6c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/python/clients/advanced/all_networks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async def main() -> None:
126126
print(f"\nMaking request to: {url}\n")
127127

128128
# Make request using async context manager
129-
async with x402HttpxClient(client) as http:
129+
async with x402HttpxClient(client, timeout=10.0) as http:
130130
response = await http.get(url)
131131
await response.aread()
132132

python/x402/mechanisms/tvm/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
DEFAULT_TONCENTER_TIMEOUT_SECONDS = 2.0
2020
DEFAULT_TONCENTER_EMULATION_TIMEOUT_SECONDS = 10.0
2121
DEFAULT_TRACE_CONFIRMATION_TIMEOUT_SECONDS = 20.0
22-
DEFAULT_STREAMING_CONFIRMATION_GRACE_SECONDS = 5.0
22+
DEFAULT_STREAMING_CONFIRMATION_GRACE_SECONDS = 3.0
2323
DEFAULT_SETTLEMENT_BATCH_FLUSH_INTERVAL_SECONDS = 1.0
2424
DEFAULT_SETTLEMENT_BATCH_FLUSH_SIZE = 100
2525
DEFAULT_SETTLEMENT_CONFIRMATION_WORKERS = 4

python/x402/tests/unit/mechanisms/tvm/test_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_should_export_tvm_runtime_constants(self):
7979
assert MIN_FACILITATOR_TON_BALANCE == 1_040_000_000
8080
assert DEFAULT_TVM_INNER_GAS_BUFFER == 7_100_000
8181
assert DEFAULT_TVM_OUTER_GAS_BUFFER == 500_000
82-
assert DEFAULT_STREAMING_CONFIRMATION_GRACE_SECONDS == 5.0
82+
assert DEFAULT_STREAMING_CONFIRMATION_GRACE_SECONDS == 3.0
8383
assert DEFAULT_SETTLEMENT_BATCH_MAX_SIZE == 185
8484
assert DEFAULT_TVM_EMULATION_ADDRESS.startswith("0:")
8585
assert DEFAULT_TVM_EMULATION_WALLET_ID == 2147483409

0 commit comments

Comments
 (0)