From ae7615e1246924721b2938ec9d93fff86fbc3f17 Mon Sep 17 00:00:00 2001 From: Evgeny Fomin Date: Thu, 25 Jul 2024 13:43:41 +0200 Subject: [PATCH] qfix --- grovedb/src/debugger.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/grovedb/src/debugger.rs b/grovedb/src/debugger.rs index 3aebdc10..c17deb55 100644 --- a/grovedb/src/debugger.rs +++ b/grovedb/src/debugger.rs @@ -1,6 +1,6 @@ //! GroveDB debugging support module. -use std::{collections::BTreeMap, fs, net::Ipv4Addr, sync::Weak}; +use std::{collections::BTreeMap, fs, sync::Weak}; use axum::{extract::State, http::StatusCode, response::IntoResponse, routing::post, Json, Router}; use grovedb_merk::{ @@ -11,8 +11,8 @@ use grovedb_merk::{ use grovedb_path::SubtreePath; use grovedb_version::version::GroveVersion; use grovedbg_types::{ - Key, MerkProofNode, MerkProofOp, NodeFetchRequest, NodeUpdate, Path, PathQuery, Query, - QueryItem, SizedQuery, SubqueryBranch, + MerkProofNode, MerkProofOp, NodeFetchRequest, NodeUpdate, Path, PathQuery, Query, QueryItem, + SizedQuery, SubqueryBranch, }; use indexmap::IndexMap; use tokio::{ @@ -38,12 +38,11 @@ where let grovedbg_tmp = tempfile::tempdir().expect("cannot create tempdir for grovedbg contents"); let grovedbg_zip = grovedbg_tmp.path().join("grovedbg.zip"); - // let grovedbg_www = grovedbg_tmp.path().join("grovedbg_www"); - let grovedbg_www = "/home/yolo/dash/grovedbg/dist"; + let grovedbg_www = grovedbg_tmp.path().join("grovedbg_www"); - // fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip"); - // zip_extensions::read::zip_extract(&grovedbg_zip, &grovedbg_www) - // .expect("cannot extract grovedbg contents"); + fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip"); + zip_extensions::read::zip_extract(&grovedbg_zip, &grovedbg_www) + .expect("cannot extract grovedbg contents"); let (shutdown_send, mut shutdown_receive) = mpsc::channel::<()>(1); let app = Router::new()