Clean up the CSS style custom bulma rules

This commit is contained in:
Kerollmops 2020-07-11 14:51:59 +02:00
parent f6eae91c7d
commit b8a1fc0126
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 5 additions and 13 deletions

View file

@ -54,16 +54,11 @@ async fn main() -> anyhow::Result<()> {
let index = Index::new(&env)?;
// Retrieve the database the file stem (w/o the extension)
// Retrieve the database the file stem (w/o the extension),
// the disk file size and the number of documents in the database.
let db_name = opt.database.file_stem().and_then(|s| s.to_str()).unwrap_or("").to_string();
// Retrieve the disk file size
let db_size = File::open(opt.database.join("data.mdb"))?.metadata()?.len() as usize;
// Precompute the number of documents in the database.
let rtxn = env.read_txn().unwrap();
let docs_count = index.documents.len(&rtxn)?;
drop(rtxn);
let docs_count = env.read_txn().and_then(|r| index.documents.len(&r))?;
// We run and wait on the HTTP server