aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/basalt.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/basalt.rs b/examples/basalt.rs
index 3841786..a5a25c3 100644
--- a/examples/basalt.rs
+++ b/examples/basalt.rs
@@ -159,15 +159,11 @@ impl Example {
#[async_trait]
impl EndpointHandler<ExampleMessage> for Example {
- async fn handle(
- self: &Arc<Self>,
- msg: Req<ExampleMessage>,
- _from: NodeID,
- ) -> Resp<ExampleMessage> {
+ async fn handle(self: &Arc<Self>, msg: &ExampleMessage, _from: NodeID) -> ExampleResponse {
debug!("Got example message: {:?}, sending example response", msg);
- Resp::new(ExampleResponse {
+ ExampleResponse {
example_field: false,
- })
+ }
}
}