Make initial federation result send just the last 100 messages.

This commit is contained in:
Fang 2018-02-22 13:01:05 +01:00
parent 6c50eb8af6
commit cfd52cc2ae

View File

@ -2192,9 +2192,9 @@
:: only auto-federate channels for now. :: only auto-federate channels for now.
?. ?=($channel sec.con.shape.s) ~ ?. ?=($channel sec.con.shape.s) ~
:+ ~ n :+ ~ n
:: share no more than 2k messages at once, for performance reasons. :: share no more than the last 100, for performance reasons.
:+ ?: (lte count.s 2.000) grams.s :+ ?: (lte count.s 100) grams.s
(slag (sub count.s 2.000) grams.s) (slag (sub count.s 100) grams.s)
[shape.s mirrors.s] [shape.s mirrors.s]
[locals.s remotes.s] [locals.s remotes.s]
:: ::