From 625c4ad0db7bb1a7c2e22700a7ad0d443ff52f67 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 18 Dec 2017 16:30:35 -0800 Subject: [PATCH] add more comments --- examples/diesel/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"];