Shorter timeout

This commit is contained in:
Alexandre Archambault 2015-06-18 17:52:28 +01:00
parent 830a81c651
commit 13cbbf6fbd
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ object Remote {
js.Dynamic.newInstance(xhr)().asInstanceOf[XMLHttpRequest]
def fetchTimeout(target: String, p: Promise[_]) =
setTimeout(10000) {
setTimeout(5000) {
if (!p.isCompleted) {
p.failure(new Exception(s"Timeout when fetching $target"))
}