Fix benchmarks
This commit is contained in:
parent
7cd823ba04
commit
c29c176528
@ -1,6 +1,6 @@
|
|||||||
pub use async_graphql::http::GQLResponse;
|
pub use async_graphql::http::GQLResponse;
|
||||||
use async_graphql::{ObjectType, QueryResponse, Schema, SubscriptionType};
|
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;
|
use async_std::task;
|
||||||
|
|
||||||
#[cfg(feature = "jemalloc")]
|
#[cfg(feature = "jemalloc")]
|
||||||
@ -19,7 +19,7 @@ where
|
|||||||
task::block_on(async { s.execute(q).await.unwrap() })
|
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()
|
parse_query(q).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user