mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08: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::helpers::NormalizePath;
|
||||||
use meilisearch_http::option::Opt;
|
use meilisearch_http::option::Opt;
|
||||||
use meilisearch_http::{create_app, index_update_callback};
|
use meilisearch_http::{create_app, index_update_callback};
|
||||||
|
|
||||||
use structopt::StructOpt;
|
use structopt::StructOpt;
|
||||||
|
|
||||||
mod analytics;
|
mod analytics;
|
||||||
|
@ -12,7 +12,7 @@ use structopt::StructOpt;
|
|||||||
|
|
||||||
const POSSIBLE_ENV: [&str; 2] = ["development", "production"];
|
const POSSIBLE_ENV: [&str; 2] = ["development", "production"];
|
||||||
|
|
||||||
#[derive(Debug, Clone, StructOpt)]
|
#[derive(Debug, Default, Clone, StructOpt)]
|
||||||
pub struct Opt {
|
pub struct Opt {
|
||||||
/// The destination where the database must be created.
|
/// The destination where the database must be created.
|
||||||
#[structopt(long, env = "MEILI_DB_PATH", default_value = "./data.ms")]
|
#[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,
|
main_map_size: default_db_options.main_map_size,
|
||||||
update_map_size: default_db_options.update_map_size,
|
update_map_size: default_db_options.update_map_size,
|
||||||
http_payload_size_limit: 10000000,
|
http_payload_size_limit: 10000000,
|
||||||
ssl_key_path: None,
|
..Opt::default()
|
||||||
ssl_cert_path:None,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let data = Data::new(opt.clone());
|
let data = Data::new(opt.clone());
|
||||||
|
Loading…
Reference in New Issue
Block a user