Skip to content

Commit 355a409

Browse files
committed
Fix full (backend-inclusive) example
1 parent 4fb7c4f commit 355a409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/full/backend/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ use async_trait::async_trait;
33

44
#[tokio::main]
55
async fn main() {
6-
AppLoad::new(&mut MyBackend).unwrap().run().await.unwrap();
6+
AppLoad::new(MyBackend).unwrap().run().await.unwrap();
77
}
88

99
struct MyBackend;
1010

1111
#[async_trait]
1212
impl AppLoadBackend for MyBackend {
13-
async fn handle_message(&mut self, functionality: &BackendReplier, message: Message) {
13+
async fn handle_message(&mut self, functionality: &BackendReplier<MyBackend>, message: Message) {
1414
match message.msg_type {
1515
MSG_SYSTEM_NEW_COORDINATOR => {
1616
println!("A frontend has connected")

0 commit comments

Comments
 (0)