Skip to content

Commit

Permalink
tarpc updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Mar 8, 2017
1 parent 3db732f commit b7abc6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions benchmarks/vote/targets/netsoup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use distributary::srv;
use distributary::{Blender, Base, Aggregation, JoinBuilder, DataType};
use tarpc;
use tarpc::util::FirstSocketAddr;
use tarpc::client::future::ClientExt;
use tarpc::future::client::{Options, ClientExt};
use tokio_core::reactor;

use targets::Backend;
Expand Down Expand Up @@ -90,7 +90,6 @@ impl SoupTarget {
use self::srv::ext::FutureClient;
let mut core = reactor::Core::new().unwrap();
for _ in 0..3 {
use tarpc::client::Options;
let c = FutureClient::connect(self.addr, Options::default().handle(core.handle()));
match core.run(c) {
Ok(client) => {
Expand Down
7 changes: 4 additions & 3 deletions src/srv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ pub fn run<T: Into<::std::net::SocketAddr>>(soup: flow::Blender,
.name(format!("rpc{}", i))
.spawn(move || {
let mut core = reactor::Core::new().unwrap();
let (_, handle) =
s.listen(addr, &core.handle(), tarpc::server::Options::default())
.unwrap();
let (_, handle) = s.listen(addr,
&core.handle(),
tarpc::future::server::Options::default())
.unwrap();
core.handle().spawn(handle);

match core.run(rx) {
Expand Down

0 comments on commit b7abc6e

Please sign in to comment.