From 47166e45f07bc4790793307cfecb053cd7f019dc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 29 Jan 2023 17:31:21 -0500 Subject: [PATCH] Be explicit with passthrough kwargs (there's so few) --- tractor/trionics/_broadcast.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tractor/trionics/_broadcast.py b/tractor/trionics/_broadcast.py index 43af2f0..96e705a 100644 --- a/tractor/trionics/_broadcast.py +++ b/tractor/trionics/_broadcast.py @@ -157,7 +157,7 @@ class BroadcastReceiver(ReceiveChannel): rx_chan: AsyncReceiver, state: BroadcastState, receive_afunc: Optional[Callable[[], Awaitable[Any]]] = None, - raise_on_lag: bool = True, + raise_on_lag: bool = False, ) -> None: @@ -441,7 +441,8 @@ def broadcast_receiver( recv_chan: AsyncReceiver, max_buffer_size: int, - **kwargs, + receive_afunc: Optional[Callable[[], Awaitable[Any]]] = None, + raise_on_lag: bool = False, ) -> BroadcastReceiver: @@ -452,5 +453,6 @@ def broadcast_receiver( maxlen=max_buffer_size, subs={}, ), - **kwargs, + receive_afunc=receive_afunc, + raise_on_lag=raise_on_lag, )