Skip to content

Commit

Permalink
Always allow overruns in sampler context
Browse files Browse the repository at this point in the history
Requires goodboy/tractor#357.
Avoid overruns when doing concurrent live feed init over multiple
brokers.
  • Loading branch information
goodboy committed May 13, 2023
1 parent a62283b commit df96155
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion piker/data/_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ async def register_with_sampler(

if open_index_stream:
try:
async with ctx.open_stream() as stream:
async with ctx.open_stream(
allow_overruns=True,
) as stream:
if sub_for_broadcasts:
subs.add(stream)

Expand Down

0 comments on commit df96155

Please sign in to comment.