Change example server to use `unbounded_send()`

`send()` is deprecated
pull/1/head
Nelson Chen 7 years ago committed by GitHub
parent 760a840392
commit 0cd210cfcd
  1. 2
      examples/server.rs

@ -86,7 +86,7 @@ fn main() {
.filter(|&(&k, _)| k != addr)
.map(|(_, v)| v);
for tx in iter {
tx.send(message.clone()).unwrap();
tx.unbounded_send(message.clone()).unwrap();
}
Ok(())
});

Loading…
Cancel
Save