Parameter handler future should be `Send`
This commit is contained in:
parent
b6c61f282e
commit
aa812a2e8f
|
|
@ -208,10 +208,10 @@ impl Node {
|
||||||
pub fn make_parameter_handler(
|
pub fn make_parameter_handler(
|
||||||
&mut self,
|
&mut self,
|
||||||
) -> Result<(
|
) -> Result<(
|
||||||
impl Future<Output = ()>,
|
impl Future<Output = ()> + Send,
|
||||||
impl Stream<Item = (String, ParameterValue)>,
|
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 (mut event_tx, event_rx) = mpsc::channel::<(String, ParameterValue)>(10);
|
||||||
|
|
||||||
let node_name = self.name()?;
|
let node_name = self.name()?;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue