mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-18 07:27:42 +02:00
Rename server.rs to daemon.rs, will have separate stateful server (eg with identity) as the next step.
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -1,2 +1,2 @@
|
||||
pub mod config;
|
||||
pub mod server;
|
||||
pub mod daemon;
|
||||
@@ -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(())
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user