mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-27 15:10:05 +01:00
update tests
This commit is contained in:
parent
7e6f068b18
commit
a5ab4b3f64
@ -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;
|
||||
|
@ -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")]
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user