From 225ccc00393b6c5325f38d60e68072147df5b0ed Mon Sep 17 00:00:00 2001 From: sunli Date: Thu, 23 Apr 2020 15:46:37 +0800 Subject: [PATCH] async-graphql-actix-web v1.1.4 --- async-graphql-actix-web/Cargo.toml | 2 +- async-graphql-actix-web/src/subscription.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/async-graphql-actix-web/Cargo.toml b/async-graphql-actix-web/Cargo.toml index 6945f013..10ab2355 100644 --- a/async-graphql-actix-web/Cargo.toml +++ b/async-graphql-actix-web/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "async-graphql-actix-web" -version = "1.1.3" +version = "1.1.4" authors = ["sunli "] edition = "2018" description = "async-graphql for actix-web" diff --git a/async-graphql-actix-web/src/subscription.rs b/async-graphql-actix-web/src/subscription.rs index fbc0e8d5..bb95d2ec 100644 --- a/async-graphql-actix-web/src/subscription.rs +++ b/async-graphql-actix-web/src/subscription.rs @@ -26,10 +26,7 @@ where Subscription: SubscriptionType + Send + Sync + 'static, { /// Create an actor for subscription connection via websocket. - pub fn new(schema: &Schema) -> Self - where - F: Fn(serde_json::Value) -> Data + Send + Sync + 'static, - { + pub fn new(schema: &Schema) -> Self { Self { schema: schema.clone(), hb: Instant::now(),