From 1c9ccd80784a6166e94f8742e8eee807feeaa155 Mon Sep 17 00:00:00 2001 From: vo9312 Date: Thu, 2 Jul 2020 16:45:31 -0500 Subject: [PATCH] Update main.rs --- examples/og_databases/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/og_databases/src/main.rs b/examples/og_databases/src/main.rs index 42d9584..de4a966 100644 --- a/examples/og_databases/src/main.rs +++ b/examples/og_databases/src/main.rs @@ -64,7 +64,7 @@ fn main() { // Start http server HttpServer::new(move || { - App::with_state(State { db: addr.clone() }) + App::new::data(State { db: addr.clone() }) .resource("/{name}", |r| r.method(Method::GET).a(index)) }) .bind("127.0.0.1:8080")