async-graphql-actix-web v1.1.4

This commit is contained in:
sunli 2020-04-23 15:46:37 +08:00
parent bf9712ad03
commit 225ccc0039
2 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "async-graphql-actix-web" name = "async-graphql-actix-web"
version = "1.1.3" version = "1.1.4"
authors = ["sunli <scott_s829@163.com>"] authors = ["sunli <scott_s829@163.com>"]
edition = "2018" edition = "2018"
description = "async-graphql for actix-web" description = "async-graphql for actix-web"

View File

@ -26,10 +26,7 @@ where
Subscription: SubscriptionType + Send + Sync + 'static, Subscription: SubscriptionType + Send + Sync + 'static,
{ {
/// Create an actor for subscription connection via websocket. /// Create an actor for subscription connection via websocket.
pub fn new<F>(schema: &Schema<Query, Mutation, Subscription>) -> Self pub fn new(schema: &Schema<Query, Mutation, Subscription>) -> Self {
where
F: Fn(serde_json::Value) -> Data + Send + Sync + 'static,
{
Self { Self {
schema: schema.clone(), schema: schema.clone(),
hb: Instant::now(), hb: Instant::now(),