format the code
* just a clean test:compile * and fixing the tweets Source
This commit is contained in:
parent
10a252d9ed
commit
d5a3b26291
5 changed files with 13 additions and 12 deletions
|
|
@ -31,12 +31,13 @@ object TwitterStreamQuickstartDocSpec {
|
||||||
val akka = Hashtag("#akka")
|
val akka = Hashtag("#akka")
|
||||||
//#model
|
//#model
|
||||||
|
|
||||||
// format: OFF
|
abstract class TweetSourceDecl {
|
||||||
//#tweet-source
|
//#tweet-source
|
||||||
val tweets: Source[Tweet, NotUsed]
|
val tweets: Source[Tweet, NotUsed]
|
||||||
//#tweet-source
|
//#tweet-source
|
||||||
// format: ON
|
}
|
||||||
= Source(
|
|
||||||
|
val tweets: Source[Tweet, NotUsed] = Source(
|
||||||
Tweet(Author("rolandkuhn"), System.currentTimeMillis, "#akka rocks!") ::
|
Tweet(Author("rolandkuhn"), System.currentTimeMillis, "#akka rocks!") ::
|
||||||
Tweet(Author("patriknw"), System.currentTimeMillis, "#akka !") ::
|
Tweet(Author("patriknw"), System.currentTimeMillis, "#akka !") ::
|
||||||
Tweet(Author("bantonsson"), System.currentTimeMillis, "#akka !") ::
|
Tweet(Author("bantonsson"), System.currentTimeMillis, "#akka !") ::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue