aboutsummaryrefslogtreecommitdiff
path: root/async-http-client-handler/scalaz
diff options
context:
space:
mode:
authorPiotr Gabara <piotr.gabara@hotmail.com>2017-09-06 19:09:16 +0200
committerPiotr Gabara <piotr.gabara@hotmail.com>2017-09-06 19:20:17 +0200
commit6874e55a316e4fe8a650efd3a849814a91bba8cb (patch)
treee22fa85abb61805b2d8f363b0e55eac1d60a94f3 /async-http-client-handler/scalaz
parente82346820797bb2d80d0fada7f17c5880871edce (diff)
downloadsttp-6874e55a316e4fe8a650efd3a849814a91bba8cb.tar.gz
sttp-6874e55a316e4fe8a650efd3a849814a91bba8cb.tar.bz2
sttp-6874e55a316e4fe8a650efd3a849814a91bba8cb.zip
Post review changes
Diffstat (limited to 'async-http-client-handler/scalaz')
-rw-r--r--async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazHandler.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazHandler.scala b/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazHandler.scala
index 88555fd..0e80a29 100644
--- a/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazHandler.scala
+++ b/async-http-client-handler/scalaz/src/main/scala/com/softwaremill/sttp/asynchttpclient/scalaz/AsyncHttpClientScalazHandler.scala
@@ -46,8 +46,7 @@ object AsyncHttpClientScalazHandler {
def apply(connectionTimeout: FiniteDuration = SttpHandler.DefaultConnectionTimeout)
: SttpHandler[Task, Nothing] =
AsyncHttpClientScalazHandler(
- new DefaultAsyncHttpClient(
- AsyncHttpClientHandler.withConnectionTimeout(connectionTimeout)),
+ AsyncHttpClientHandler.defaultClient(connectionTimeout.toMillis.toInt),
closeClient = true)
def usingConfig(cfg: AsyncHttpClientConfig): SttpHandler[Task, Nothing] =