Merge pull request #18961 from ktoso/wip-fixup-merge-order-problem-ktoso

=doc fixup due to validation having run before we merged in the rename
This commit is contained in:
Konrad Malawski 2015-11-18 18:24:21 +01:00
commit dfe327cbf9

View file

@ -7,7 +7,7 @@ import java.io.File
import akka.actor.ActorRef
import akka.http.scaladsl.model.Multipart.FormData.BodyPart
import akka.stream.io.{ Framing, SynchronousFileSink }
import akka.stream.io.{ Framing }
import akka.stream.scaladsl._
import akka.http.scaladsl.model.Multipart
import akka.util.ByteString
@ -34,7 +34,7 @@ class FileUploadExamplesSpec extends RoutingSpec {
// stream into a file as the chunks of it arrives and return a future
// file to where it got stored
val file = File.createTempFile("upload", "tmp")
b.entity.dataBytes.runWith(SynchronousFileSink(file)).map(_ =>
b.entity.dataBytes.runWith(Sink.file(file)).map(_ =>
(b.name -> file))
case b: BodyPart =>