From f2df32a673cd0c0ff5d78e43a4326fc004442265 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 17 Nov 2022 18:25:46 -0500 Subject: [PATCH] Use throttle period for wait-on-clearing-event timeout --- piker/data/_sampling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/data/_sampling.py b/piker/data/_sampling.py index 32b753a2..143f1c19 100644 --- a/piker/data/_sampling.py +++ b/piker/data/_sampling.py @@ -525,7 +525,7 @@ async def uniform_rate_send( # we have a quote already so send it now. - with trio.move_on_after(1/60) as cs: + with trio.move_on_after(throttle_period) as cs: while ( not set(ticks_by_type).intersection(clear_types) ):