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.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs
index dc8aa82..76d018f 100644
--- a/src/bin/obnam-server.rs
+++ b/src/bin/obnam-server.rs
@@ -36,7 +36,9 @@ async fn main() -> anyhow::Result<()> {
return Err(ConfigError::BadServerAddress.into());
}
- let store = IndexedStore::new(&config.chunks);
+ let mut store = IndexedStore::new(&config.chunks);
+ store.fill_index()?;
+ println!("existing generations: {:?}", store.find_generations());
let store = Arc::new(Mutex::new(store));
let store = warp::any().map(move || Arc::clone(&store));