Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Chariott #30

Merged
merged 23 commits into from
Jun 6, 2023
Prev Previous commit
Next Next commit
Use Chariott
ashbeitz committed Jun 6, 2023

Partially verified

This commit is signed with the committer’s verified signature.
targos’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
commit 27ce54cc23b421ad4e9f9b839560611c08122e2b
2 changes: 1 addition & 1 deletion samples/common/src/utils.rs
Original file line number Diff line number Diff line change
@@ -141,7 +141,7 @@ pub async fn discover_digital_twin_service_using_chariott(
services.iter()
.find(|service| service.schema_kind == constants::chariott::SCHEMA_KIND_FOR_GRPC)
.map(|service| service.url.clone())
.ok_or(Status::not_found("Failed to discover the in-vehicle digital twin service's URL, as none of the services found had the '{constants::chariott::SCHEMA_KIND_FOR_GRPC}' schema kind")),
.ok_or_else(|| Status::not_found("Failed to discover the in-vehicle digital twin service's URL, as none of the services found had the '{constants::chariott::SCHEMA_KIND_FOR_GRPC}' schema kind")),
None => Err(Status::not_found("Failed to discover the in-vehicle digital twin service's URL, as it is not registered with Chariott"))
}
}