From b0876bd4e6f979f432de72e9aa03a9bde9beab94 Mon Sep 17 00:00:00 2001 From: Fang Date: Sun, 7 Jan 2018 16:28:22 +0100 Subject: [PATCH] Burden prize may contains no more than 2k messages, for performance reasons. --- app/hall.hoon | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/hall.hoon b/app/hall.hoon index 2a7e2ad21..7750b17de 100644 --- a/app/hall.hoon +++ b/app/hall.hoon @@ -921,6 +921,8 @@ :: |= {gaz/(list telegram) cos/lobby pes/crowd} ^+ +> + ~? (gth (lent gaz) 2.000) + [%unexpected-scrollback-length nom (lent gaz)] =* self +> :: local config =. self @@ -2171,7 +2173,9 @@ :: only auto-federate channels for now. ?. ?=($channel sec.con.shape.s) ~ :+ ~ n - :+ grams.s + :: share no more than 2k messages at once, for performance reasons. + :+ ?: (lte count.s 2.000) grams.s + (slag (sub count.s 2.000) grams.s) [shape.s mirrors.s] [locals.s remotes.s] ::