async-graphql-actix-web v1.1.4
This commit is contained in:
parent
bf9712ad03
commit
225ccc0039
|
@ -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"
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user