Updated book for master ***NO_CI***

This commit is contained in:
Juniper Bot 2021-06-29 06:56:52 +00:00
parent 7d91c0d59c
commit a519a237e0
4 changed files with 6 additions and 6 deletions

View file

@ -181,7 +181,7 @@ type StringStream = Pin<Box<dyn Stream<Item = Result<String, FieldEr
#[graphql_subscription(context = Database)]
impl Subscription {
async fn hello_world() -> StringStream {
let stream = tokio::stream::iter(vec![
let stream = futures::stream::iter(vec![
Ok(String::from("Hello")),
Ok(String::from("World!"))
]);
@ -244,7 +244,7 @@ where [<code>Connection</code>][Connection] is a <code>Stream</code> of values r
# impl Subscription {
# async fn hello_world() -&gt; StringStream {
# let stream =
# tokio::stream::iter(vec![Ok(String::from(&quot;Hello&quot;)), Ok(String::from(&quot;World!&quot;))]);
# futures::stream::iter(vec![Ok(String::from(&quot;Hello&quot;)), Ok(String::from(&quot;World!&quot;))]);
# Box::pin(stream)
# }
# }

View file

@ -3089,7 +3089,7 @@ type StringStream = Pin&lt;Box&lt;dyn Stream&lt;Item = Result&lt;String, FieldEr
#[graphql_subscription(context = Database)]
impl Subscription {
async fn hello_world() -&gt; StringStream {
let stream = tokio::stream::iter(vec![
let stream = futures::stream::iter(vec![
Ok(String::from(&quot;Hello&quot;)),
Ok(String::from(&quot;World!&quot;))
]);
@ -3152,7 +3152,7 @@ where [<code>Connection</code>][Connection] is a <code>Stream</code> of values r
# impl Subscription {
# async fn hello_world() -&gt; StringStream {
# let stream =
# tokio::stream::iter(vec![Ok(String::from(&quot;Hello&quot;)), Ok(String::from(&quot;World!&quot;))]);
# futures::stream::iter(vec![Ok(String::from(&quot;Hello&quot;)), Ok(String::from(&quot;World!&quot;))]);
# Box::pin(stream)
# }
# }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long