Created
July 11, 2012 14:06
-
-
Save kulikov/3090573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val deliveryTime = | |
if (meta.deliveryTimeFrom.nonEmpty) { | |
meta.deliveryTimeFrom.get // optimistic | |
} else { | |
val currentTime = Await.result(timeService ? GetTime, timeout.duration).asInstanceOf[Long] | |
currentTime + (3600 * 24 * 1000) // next day | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment