diff options
author | Piotr Gabara <piotr.gabara@hotmail.com> | 2017-09-06 19:09:16 +0200 |
---|---|---|
committer | Piotr Gabara <piotr.gabara@hotmail.com> | 2017-09-06 19:20:17 +0200 |
commit | 6874e55a316e4fe8a650efd3a849814a91bba8cb (patch) | |
tree | e22fa85abb61805b2d8f363b0e55eac1d60a94f3 /async-http-client-handler/fs2/src/main | |
parent | e82346820797bb2d80d0fada7f17c5880871edce (diff) | |
download | sttp-6874e55a316e4fe8a650efd3a849814a91bba8cb.tar.gz sttp-6874e55a316e4fe8a650efd3a849814a91bba8cb.tar.bz2 sttp-6874e55a316e4fe8a650efd3a849814a91bba8cb.zip |
Post review changes
Diffstat (limited to 'async-http-client-handler/fs2/src/main')
-rw-r--r-- | async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala b/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala index 8d38f43..a33932b 100644 --- a/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala +++ b/async-http-client-handler/fs2/src/main/scala/com/softwaremill/sttp/asynchttpclient/fs2/AsyncHttpClientFs2Handler.scala @@ -68,8 +68,7 @@ object AsyncHttpClientFs2Handler { implicit ec: ExecutionContext = ExecutionContext.Implicits.global) : SttpHandler[F, Stream[F, ByteBuffer]] = AsyncHttpClientFs2Handler[F]( - new DefaultAsyncHttpClient( - AsyncHttpClientHandler.withConnectionTimeout(connectionTimeout)), + AsyncHttpClientHandler.defaultClient(connectionTimeout.toMillis.toInt), closeClient = true) /** |