chore(examples): Remove unnecessary asyncronous file io to read data for example (#1219)

This commit is contained in:
tottoto
2023-01-06 14:34:51 -05:00
committed by GitHub
parent b6d9fd69ae
commit 2ec0f87767
7 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ impl Greeter for MyGreeter {
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let path = "/tmp/tonic/helloworld";
tokio::fs::create_dir_all(Path::new(path).parent().unwrap()).await?;
std::fs::create_dir_all(Path::new(path).parent().unwrap())?;
let greeter = MyGreeter::default();