Burden prize may contains no more than 2k messages, for performance reasons.

This commit is contained in:
Fang 2018-01-07 16:28:22 +01:00
parent 2370efc727
commit b0876bd4e6

View File

@ -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]
::