Parameter handler future should be `Send`

This commit is contained in:
Martin Dahl 2022-08-12 10:09:24 +02:00
parent b6c61f282e
commit aa812a2e8f
1 changed files with 2 additions and 2 deletions

View File

@ -208,10 +208,10 @@ impl Node {
pub fn make_parameter_handler(
&mut self,
) -> Result<(
impl Future<Output = ()>,
impl Future<Output = ()> + Send,
impl Stream<Item = (String, ParameterValue)>,
)> {
let mut handlers: Vec<std::pin::Pin<Box<dyn Future<Output = ()>>>> = Vec::new();
let mut handlers: Vec<std::pin::Pin<Box<dyn Future<Output = ()> + Send>>> = Vec::new();
let (mut event_tx, event_rx) = mpsc::channel::<(String, ParameterValue)>(10);
let node_name = self.name()?;