Skip to content

Commit 99fc52f

Browse files
committed
Refactor rpc response, based on the request
1 parent 6f42ad1 commit 99fc52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/rust/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ impl EntityProvider for MyEntityProvider {
1515
request: Request<EntityType>,
1616
) -> Result<Response<Entity>, Status> {
1717
Ok(Response::new(Entity {
18-
data: "Hello".to_string(),
19-
r#type: "Hello".to_string(),
18+
data: "Sample data".to_string(),
19+
r#type: request.into_inner().r#type,
2020
index: 0,
2121
}))
2222
}

0 commit comments

Comments
 (0)