Merge pull request #19 from nelsonjchen/patch-2

Change example server to use `unbounded_send()`
pull/1/head
Alexey Galakhov 7 years ago committed by GitHub
commit cce4530f4f
  1. 2
      examples/server.rs

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

Loading…
Cancel
Save