upper user limit for ceval

deepcrayonfish^2
Thibault Duplessis 2021-11-26 17:22:54 +01:00
parent 246b871237
commit ea256b836b
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function toCeval(e: Tree.ServerEval): Tree.ClientEval {
export function make(opts: EvalCacheOpts): EvalCache {
let fetchedByFen: Dictionary<CachedEval> = {};
const upgradable = prop(false);
lichess.pubsub.on('socket.in.crowd', d => upgradable(d.nb > 2));
lichess.pubsub.on('socket.in.crowd', d => upgradable(d.nb > 2 && d.nb < 99999));
return {
onCeval: throttle(500, function () {
const node = opts.getNode(),