chore(example): update guides to 0.1-beta.1 (#198)

* update routeguide

* update helloworld

* depend on tonic beta.1

* Apply suggestions from code review

Co-Authored-By: Lucio Franco <[email protected]>

Co-authored-by: Lucio Franco <[email protected]>
This commit is contained in:
Juan Alvarez
2019-12-19 18:23:25 -05:00
committed by Lucio Franco
co-authored by Lucio Franco
parent 6566b237a1
commit 4e5c6c8f23
7 changed files with 86 additions and 93 deletions
+1 -2
View File
@@ -15,8 +15,7 @@ struct Location {
#[allow(dead_code)]
pub fn load() -> Vec<crate::routeguide::Feature> {
let file =
File::open("tonic-examples/data/route_guide_db.json").expect("failed to open data file");
let file = File::open("examples/data/route_guide_db.json").expect("failed to open data file");
let decoded: Vec<Feature> =
serde_json::from_reader(&file).expect("failed to deserialize features");