Merge pull request #20091 from prascuna/patch-1

Fix type of tweets Source
This commit is contained in:
Konrad Malawski 2016-03-21 15:56:29 +01:00
commit e4bdd9027b

View file

@ -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