chetanmeh commented on a change in pull request #4316: Update version for Akka 
dependencies and Scala
URL: 
https://github.com/apache/incubator-openwhisk/pull/4316#discussion_r282346189
 
 

 ##########
 File path: 
common/scala/src/main/scala/org/apache/openwhisk/http/PoolingRestClient.scala
 ##########
 @@ -53,9 +53,14 @@ class PoolingRestClient(
 
   //if specified, override the ClientConnection idle-timeout and keepalive 
socket option value
   private val timeoutSettings = {
-    
ConnectionPoolSettings(system.settings.config).withUpdatedConnectionSettings { 
s =>
-      timeout.map(t => s.withIdleTimeout(t)).getOrElse(s)
-    }
+    val cps = ConnectionPoolSettings(system.settings.config)
+    timeout
+      .map { t =>
+        cps
 
 Review comment:
   Not getting it ... `cps` is defined at L56 and then referred later. So 
should be fine?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to