feat(grpc): call walk_dir from grpc service
This commit is contained in:
parent
f803aa92f7
commit
8cd4b4b10f
4 changed files with 41 additions and 9 deletions
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue