mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
fix(auth): fix env being closed when dumping
This commit is contained in:
parent
cca65499de
commit
23eba82038
2 changed files with 11 additions and 2 deletions
|
@ -10,7 +10,10 @@ const KEYS_PATH: &str = "keys";
|
|||
|
||||
impl AuthController {
|
||||
pub fn dump(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> Result<()> {
|
||||
let store = HeedAuthStore::new(&src)?;
|
||||
let mut store = HeedAuthStore::new(&src)?;
|
||||
|
||||
// do not attempt to close the database on drop!
|
||||
store.set_drop_on_close(false);
|
||||
|
||||
let keys_file_path = dst.as_ref().join(KEYS_PATH);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue