Merge pull request #536 from Fang-/federation-hotfix

Federation performance hotfix
This commit is contained in:
Fang 2018-01-07 16:36:45 +01:00 committed by GitHub
commit 6f9e0e1c4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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