=str&http - 19142 - Renames all occurrences of mat with materializer
(When referring to a Materializer)
This commit is contained in:
parent
15cc65ce9d
commit
33a9257a3b
57 changed files with 95 additions and 95 deletions
|
|
@ -77,11 +77,11 @@ class BasicDirectivesExamplesSpec extends RoutingSpec {
|
|||
"extractMaterializer-0" in {
|
||||
val route =
|
||||
path("sample") {
|
||||
extractMaterializer { mat =>
|
||||
extractMaterializer { materializer =>
|
||||
complete {
|
||||
// explicitly use the `mat` materializer:
|
||||
Source.single(s"Materialized by ${mat.##}!")
|
||||
.runWith(Sink.head)(mat)
|
||||
// explicitly use the `materializer`:
|
||||
Source.single(s"Materialized by ${materializer.##}!")
|
||||
.runWith(Sink.head)(materializer)
|
||||
}
|
||||
}
|
||||
} // default materializer will be used
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class FileUploadDirectivesExamplesSpec extends RoutingSpec {
|
|||
// adding integers as a service ;)
|
||||
val route =
|
||||
extractRequestContext { ctx =>
|
||||
implicit val mat = ctx.materializer
|
||||
implicit val materializer = ctx.materializer
|
||||
implicit val ec = ctx.executionContext
|
||||
|
||||
fileUpload("csv") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue