Enable backpressure during data-feed layer startup to avoid overruns

explicit_write_pps_on_exit
algorandpa 2023-02-14 19:46:09 -05:00 committed by jaredgoldman
parent acc86ae6db
commit 0dec2b9c89
2 changed files with 2 additions and 2 deletions

View File

@ -1467,7 +1467,7 @@ async def maybe_open_feed(
'tick_throttle': kwargs.get('tick_throttle'), 'tick_throttle': kwargs.get('tick_throttle'),
# XXX: super critical to have bool defaults here XD # XXX: super critical to have bool defaults here XD
'backpressure': kwargs.get('backpressure', True), # 'backpressure': kwargs.get('backpressure', True),
'start_stream': kwargs.get('start_stream', True), 'start_stream': kwargs.get('start_stream', True),
}, },
key=fqsn, key=fqsn,

View File

@ -176,5 +176,5 @@ def test_ensure_ems_in_paper_actors(
) as exc_info: ) as exc_info:
trio.run(main) trio.run(main)
cancel_msg: str = '_emsd_main was remotely cancelled by its caller' cancel_msg: str = '_emsd_main()` was remotely cancelled by its caller'
assert cancel_msg in exc_info.value.args[0] assert cancel_msg in exc_info.value.args[0]