houshengbo closed pull request #3775: Remove unnecessary pause in retry method
URL: https://github.com/apache/incubator-openwhisk/pull/3775
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/common/scala/src/main/scala/whisk/utils/Retry.scala
b/common/scala/src/main/scala/whisk/utils/Retry.scala
index e4f4d763af..9ab3102dea 100644
--- a/common/scala/src/main/scala/whisk/utils/Retry.scala
+++ b/common/scala/src/main/scala/whisk/utils/Retry.scala
@@ -36,7 +36,6 @@ object retry {
waitBeforeRetry: Option[Duration] = Some(50.milliseconds),
retryMessage: Option[String] = None): T = {
require(N >= 1, "maximum number of fn applications must be greater than 1")
- waitBeforeRetry.foreach(t => Thread.sleep(t.toMillis)) // initial wait if
any
try fn
catch {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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