Add Service trait

Added a consistent interface to all the microservices.
This commit is contained in:
Greg Fitzgerald
2018-07-03 22:14:08 -06:00
parent 44150b2e85
commit 77bf17064a
20 changed files with 268 additions and 75 deletions

View File

@ -13,6 +13,7 @@ use solana::hash::Hash;
use solana::mint::Mint;
use solana::nat::udp_public_bind;
use solana::ncp::Ncp;
use solana::service::Service;
use solana::signature::{GenKeys, KeyPair, KeyPairUtil};
use solana::streamer::default_window;
use solana::thin_client::ThinClient;
@ -373,7 +374,7 @@ fn converge(
}
sleep(Duration::new(1, 0));
}
threads.extend(ncp.thread_hdls.into_iter());
threads.extend(ncp.thread_hdls().into_iter());
rv
}