Rename server.rs to daemon.rs, will have separate stateful server (eg with identity) as the next step.

This commit is contained in:
Tim Bruijnzeels
2018-11-16 16:28:04 +01:00
parent 1cb5d036bf
commit c8f9e491d4
5 changed files with 6 additions and 10 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ extern crate tokio;
#[macro_use] extern crate lazy_static;
use rpubd::pubd::config::Config;
use rpubd::pubd::server;
use rpubd::pubd::daemon;
lazy_static! {
static ref CONFIG: Config = {
@@ -32,7 +32,7 @@ fn main() {
rt.spawn(
future::lazy(|| {
server::serve(&CONFIG);
daemon::serve(&CONFIG);
Ok(())
})
);
+1 -5
View File
@@ -40,11 +40,7 @@ pub struct PubClient {
// key value store
store: CachingDiskKeyStore,
// -> my ID
// -> my key id
// -> my name/handle
// -> my certificate
// my_id -> MyIdentity
// -> my parent
// -> service uri
// -> parent id certificate
+1 -1
View File
@@ -1,2 +1,2 @@
pub mod config;
pub mod server;
pub mod daemon;
+2 -2
View File
@@ -12,7 +12,7 @@ use hyper::Client;
use rpki::oob::exchange::PublisherRequest;
use rpubd::test;
use rpubd::pubd::config::Config;
use rpubd::pubd::server;
use rpubd::pubd::daemon;
use rpubd::provisioning::publisher::Publisher;
use std::str;
@@ -50,7 +50,7 @@ fn testing() {
let mut rt = Runtime::new().unwrap();
rt.spawn(
future::lazy(move || {
server::serve(&server_conf);
daemon::serve(&server_conf);
Ok(())
})
);