diff --git a/examples/diesel/src/main.rs b/examples/diesel/src/main.rs index 331c5f800..1c9728d84 100644 --- a/examples/diesel/src/main.rs +++ b/examples/diesel/src/main.rs @@ -26,11 +26,12 @@ use diesel::prelude::*; mod models; mod schema; - +/// State with DbExecutor address struct State { db: SyncAddress, } +/// Async request handler fn index(req: HttpRequest) -> Box> { let name = &req.match_info()["name"];