summaryrefslogtreecommitdiff
path: root/src/bin/obnam-server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r--src/bin/obnam-server.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs
index 47f2b16..ddbfce3 100644
--- a/src/bin/obnam-server.rs
+++ b/src/bin/obnam-server.rs
@@ -5,7 +5,7 @@ use obnam::chunk::DataChunk;
use obnam::chunkid::ChunkId;
use obnam::chunkmeta::ChunkMeta;
use obnam::indexedstore::IndexedStore;
-use obnam::server::{Config, ConfigError};
+use obnam::server::{ServerConfig, ServerConfigError};
use serde::Serialize;
use std::collections::HashMap;
use std::default::Default;
@@ -35,7 +35,7 @@ async fn main() -> anyhow::Result<()> {
if addresses.is_empty() {
error!("specified address is empty set: {:?}", addresses);
eprintln!("ERROR: server address is empty: {:?}", addresses);
- return Err(ConfigError::BadServerAddress.into());
+ return Err(ServerConfigError::BadServerAddress.into());
}
let store = IndexedStore::new(&config.chunks)?;
@@ -84,8 +84,8 @@ async fn main() -> anyhow::Result<()> {
Ok(())
}
-fn load_config(filename: &Path) -> Result<Config, anyhow::Error> {
- let config = Config::read_config(&filename).with_context(|| {
+fn load_config(filename: &Path) -> Result<ServerConfig, anyhow::Error> {
+ let config = ServerConfig::read_config(&filename).with_context(|| {
format!(
"Couldn't read default configuration file {}",
filename.display()