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
|
|
@ -7,7 +7,7 @@ package docs.http.scaladsl.server.directives
|
|||
import akka.http.scaladsl.model.ContentTypes._
|
||||
import akka.http.scaladsl.model._
|
||||
import akka.http.scaladsl.model.headers.`Content-Type`
|
||||
import akka.http.scaladsl.server.{Route, ValidationRejection}
|
||||
import akka.http.scaladsl.server.{ Route, ValidationRejection }
|
||||
import akka.testkit.EventFilter
|
||||
import docs.http.scaladsl.server.RoutingSpec
|
||||
|
||||
|
|
|
|||
|
|
@ -31,12 +31,13 @@ object TwitterStreamQuickstartDocSpec {
|
|||
val akka = Hashtag("#akka")
|
||||
//#model
|
||||
|
||||
// format: OFF
|
||||
//#tweet-source
|
||||
val tweets: Source[Tweet, NotUsed]
|
||||
//#tweet-source
|
||||
// format: ON
|
||||
= Source(
|
||||
abstract class TweetSourceDecl {
|
||||
//#tweet-source
|
||||
val tweets: Source[Tweet, NotUsed]
|
||||
//#tweet-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 !") ::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue