Merge pull request #20091 from prascuna/patch-1
Fix type of tweets Source
This commit is contained in:
commit
e4bdd9027b
1 changed files with 4 additions and 7 deletions
|
|
@ -31,7 +31,10 @@ object TwitterStreamQuickstartDocSpec {
|
|||
val akka = Hashtag("#akka")
|
||||
//#model
|
||||
|
||||
val tweets = Source(
|
||||
//#tweet-source
|
||||
val tweets: Source[Tweet, NotUsed]
|
||||
//#tweet-source
|
||||
= Source(
|
||||
Tweet(Author("rolandkuhn"), System.currentTimeMillis, "#akka rocks!") ::
|
||||
Tweet(Author("patriknw"), System.currentTimeMillis, "#akka !") ::
|
||||
Tweet(Author("bantonsson"), System.currentTimeMillis, "#akka !") ::
|
||||
|
|
@ -53,12 +56,6 @@ class TwitterStreamQuickstartDocSpec extends AkkaSpec {
|
|||
// Disable println
|
||||
def println(s: Any): Unit = ()
|
||||
|
||||
trait Example0 {
|
||||
//#tweet-source
|
||||
val tweets: Source[Tweet, Unit]
|
||||
//#tweet-source
|
||||
}
|
||||
|
||||
trait Example1 {
|
||||
//#first-sample
|
||||
//#materializer-setup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue