From 976d34587f73a6be2bb4533c5e03b6a8898df9d5 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 3 Jan 2018 23:06:02 -0500 Subject: [PATCH] default WS drop to 0% on dev --- conf/base.conf | 1 + modules/api/src/main/Env.scala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/base.conf b/conf/base.conf index b1eefd9220..45d2094396 100644 --- a/conf/base.conf +++ b/conf/base.conf @@ -14,6 +14,7 @@ net { } email = "contact@lichess.org" crawlable = false + websocket_drop_percent = 0 } forcedev = false play { diff --git a/modules/api/src/main/Env.scala b/modules/api/src/main/Env.scala index 39a68add20..f135e435bb 100644 --- a/modules/api/src/main/Env.scala +++ b/modules/api/src/main/Env.scala @@ -120,7 +120,7 @@ final class Env( val websocketDropPercentSetting = settingStore[Int]( "websocketDropPercent", - default = 100, + default = config getInt "net.websocket_drop_percent", text = "Percentage of websockets to drop. Experimenting server restart issues. Don't touch it.".some, persist = false )