From a217b16c9b70e230d7ab72fc250bd74b7ab32423 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Mon, 4 Oct 2021 09:01:01 +0200 Subject: [PATCH] prevent errors to be stored in game cache By just replacing them with the absence of a game. This will cause the round and proxy to be terminated, and the next request will try to load it again. --- modules/round/src/main/GameProxy.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/round/src/main/GameProxy.scala b/modules/round/src/main/GameProxy.scala index 9032b07352..9ce4c509da 100644 --- a/modules/round/src/main/GameProxy.scala +++ b/modules/round/src/main/GameProxy.scala @@ -97,7 +97,7 @@ final private class GameProxy( private[this] var cache: Fu[Option[Game]] = fetch - private[this] def fetch = gameRepo game id + private[this] def fetch = gameRepo game id recoverDefault none } private object GameProxy {