feat(grpc): call walk_dir from grpc service

This commit is contained in:
Alexander Navarro 2024-04-24 11:23:36 -04:00
parent f803aa92f7
commit 8cd4b4b10f
4 changed files with 41 additions and 9 deletions

View file

@ -1,3 +1,4 @@
use core::panic;
use std::{env, path::PathBuf};
use clap::Parser;
@ -20,10 +21,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
.path
.unwrap_or(env::current_dir().expect("Current directory is not available."));
let files = file_explorer::walk_dir(&path).expect("error");
eprintln!("DEBUGPRINT[4]: main.rs:20: files={:#?}", files.len());
let server = grpc::run()?;
server.connect().await?;