From c29c176528bbe881ab7b683bfa1274f5237fcfaa Mon Sep 17 00:00:00 2001 From: Koxiaet <38139193+Koxiaet@users.noreply.github.com> Date: Tue, 8 Sep 2020 10:03:25 +0100 Subject: [PATCH] Fix benchmarks --- benchmark/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/src/lib.rs b/benchmark/src/lib.rs index 92949747..bda27bb0 100644 --- a/benchmark/src/lib.rs +++ b/benchmark/src/lib.rs @@ -1,6 +1,6 @@ pub use async_graphql::http::GQLResponse; use async_graphql::{ObjectType, QueryResponse, Schema, SubscriptionType}; -use async_graphql_parser::{parse_query, types::Document}; +use async_graphql_parser::{parse_query, types::ExecutableDocument}; use async_std::task; #[cfg(feature = "jemalloc")] @@ -19,7 +19,7 @@ where task::block_on(async { s.execute(q).await.unwrap() }) } -pub fn parse(q: &str) -> Document { +pub fn parse(q: &str) -> ExecutableDocument { parse_query(q).unwrap() }