Skip to content

Commit 6182fd2

Browse files
committed
README: Update example use of ManagementEndpoint::handle_async()
Earlier the handle_async() API was updated to take a closure handling CommandEffects, informing the application of requests to change the state of the stack. Update the README to reflect it. Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
1 parent a62256b commit 6182fd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ async fn nvme_mi<'a>(router: &'a Router<'a>) -> std::io::Result<()> {
4747
continue;
4848
};
4949

50-
mep.handle_async(&mut subsys, msg, ic, resp).await;
50+
// Disregard command effects for demonstration purposes
51+
let effects = async |_| Ok(());
52+
mep.handle_async(&mut subsys, msg, ic, resp, effects).await;
5153
}
5254
}
5355
```

0 commit comments

Comments
 (0)