format the code

* just a clean test:compile
* and fixing the tweets Source
This commit is contained in:
Patrik Nordwall 2016-05-10 11:38:46 +02:00
parent 10a252d9ed
commit d5a3b26291
5 changed files with 13 additions and 12 deletions

View file

@ -31,12 +31,13 @@ object TwitterStreamQuickstartDocSpec {
val akka = Hashtag("#akka")
//#model
// format: OFF
abstract class TweetSourceDecl {
//#tweet-source
val tweets: Source[Tweet, NotUsed]
//#tweet-source
// format: ON
= Source(
}
val tweets: Source[Tweet, NotUsed] = Source(
Tweet(Author("rolandkuhn"), System.currentTimeMillis, "#akka rocks!") ::
Tweet(Author("patriknw"), System.currentTimeMillis, "#akka !") ::
Tweet(Author("bantonsson"), System.currentTimeMillis, "#akka !") ::