update tests

This commit is contained in:
qdequele 2020-05-22 11:52:01 +02:00
parent 7e6f068b18
commit a5ab4b3f64
No known key found for this signature in database
GPG Key ID: B3F0A000EBF11745
3 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,6 @@ use meilisearch_http::data::Data;
use meilisearch_http::helpers::NormalizePath;
use meilisearch_http::option::Opt;
use meilisearch_http::{create_app, index_update_callback};
use structopt::StructOpt;
mod analytics;

View File

@ -12,7 +12,7 @@ use structopt::StructOpt;
const POSSIBLE_ENV: [&str; 2] = ["development", "production"];
#[derive(Debug, Clone, StructOpt)]
#[derive(Debug, Default, Clone, StructOpt)]
pub struct Opt {
/// The destination where the database must be created.
#[structopt(long, env = "MEILI_DB_PATH", default_value = "./data.ms")]

View File

@ -31,8 +31,7 @@ impl Server {
main_map_size: default_db_options.main_map_size,
update_map_size: default_db_options.update_map_size,
http_payload_size_limit: 10000000,
ssl_key_path: None,
ssl_cert_path:None,
..Opt::default()
};
let data = Data::new(opt.clone());