Skip to content

Commit

Permalink
update grovedbg app
Browse files Browse the repository at this point in the history
  • Loading branch information
fominok committed Aug 22, 2024
1 parent 7881b9a commit a2c9670
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions grovedb/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ fn main() {
use sha2::{digest::FixedOutput, Digest, Sha256};

const GROVEDBG_SHA256: [u8; 32] =
hex!("c6636f10b43c703128b621a7c4b94139a1a7d0a603e26fca1771734a7994bb7c");
const GROVEDBG_VERSION: &str = "v1.0.0-rc.5";
hex!("ea7d9258973aa765eaf5064451fc83efa22e0ce6eaf2938507e2703571364e35");
const GROVEDBG_VERSION: &str = "v1.0.0-rc.6";

let out_dir = PathBuf::from(&env::var_os("OUT_DIR").unwrap());
let grovedbg_zip_path = out_dir.join("grovedbg.zip");
Expand Down
19 changes: 8 additions & 11 deletions grovedb/src/debugger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,14 @@ where
A: ToSocketAddrs + Send + 'static,
{
std::thread::spawn(move || {
// 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");

// 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 grovedbg_www = "/home/yolo/dash/grovedbg/dist";
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");

fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip");

Check warning on line 43 in grovedb/src/debugger.rs

View workflow job for this annotation

GitHub Actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits --> grovedb/src/debugger.rs:43:34 | 43 | fs::write(&grovedbg_zip, &GROVEDBG_ZIP).expect("cannot crate grovedbg.zip"); | ^^^^^^^^^^^^^ help: change this to: `GROVEDBG_ZIP` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
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()
Expand Down

0 comments on commit a2c9670

Please sign in to comment.