chore(examples): Remove unnecessary asyncronous file io to read data for example (#1219)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user