reimplement Data

This commit is contained in:
mpostma 2020-12-22 17:53:13 +01:00
parent 55e1552957
commit 0d7c4beecd
5 changed files with 44 additions and 23 deletions

View file

@ -147,7 +147,7 @@ pub fn print_launch_resume(opt: &Opt, data: &Data) {
eprintln!();
if data.api_keys.master.is_some() {
if data.api_keys().master.is_some() {
eprintln!("A Master Key has been set. Requests to MeiliSearch won't be authorized unless you provide an authentication key.");
} else {
eprintln!("No master key found; The server will accept unidentified requests. \