Add initial backfilling on portal creation

This commit is contained in:
Tulir Asokan
2023-04-16 15:19:24 +03:00
parent 4194b4dfd9
commit 58befb3f96
3 changed files with 60 additions and 16 deletions

View File

@@ -189,13 +189,18 @@ bridge:
backfill:
# Should backfill be enabled at all?
enabled: false
# Limits for backfilling. Set to 0 to disable that type of backfill, or -1 for unlimited.
# Limits for backfilling.
limits:
# Initial backfill (when creating portal).
# Initial backfill (when creating portal). 0 means backfill is disabled.
# A special unlimited value is not supported, you must set a limit. Initial backfill will
# fetch all messages first before backfilling anything, so high limits can take a lot of time.
initial:
dm: 50
channel: 0
# Missed message backfill (on startup).
# 0 means backfill is disabled, -1 means fetch all messages since last bridged message.
# When using unlimited backfill (-1), messages are backfilled as they are fetched.
# With limits, all messages up to the limit are fetched first and backfilled afterwards.
missed:
dm: 50
channel: 0