Prefer using WithoutTls for the auth env

This commit is contained in:
Kerollmops 2025-03-12 10:09:29 +01:00
parent a4aaf932ba
commit 5e6abcf50c
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
5 changed files with 18 additions and 17 deletions

View file

@ -6,7 +6,7 @@ use std::collections::{HashMap, HashSet};
use error::{AuthControllerError, Result};
use maplit::hashset;
use meilisearch_types::heed::Env;
use meilisearch_types::heed::{Env, WithoutTls};
use meilisearch_types::index_uid_pattern::IndexUidPattern;
use meilisearch_types::keys::{Action, CreateApiKey, Key, PatchApiKey};
use meilisearch_types::milli::update::Setting;
@ -23,7 +23,7 @@ pub struct AuthController {
}
impl AuthController {
pub fn new(auth_env: Env, master_key: &Option<String>) -> Result<Self> {
pub fn new(auth_env: Env<WithoutTls>, master_key: &Option<String>) -> Result<Self> {
let store = HeedAuthStore::new(auth_env)?;
if store.is_empty()? {