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