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(),