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

@@ -9,6 +9,7 @@ use atty::{is, Stream};
use getopts::Options;
use solana::crdt::{ReplicatedData, TestNode};
use solana::fullnode::{FullNode, InFile, OutFile};
use solana::service::Service;
use std::env;
use std::fs::File;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
@@ -94,7 +95,5 @@ fn main() -> () {
};
FullNode::new(node, true, InFile::StdIn, None, Some(outfile), exit)
};
for t in fullnode.thread_hdls {
t.join().expect("join");
}
fullnode.join().expect("join");
}