Add option to disable backfilling in big guilds

This commit is contained in:
Tulir Asokan
2023-04-16 23:11:44 +03:00
parent ed020c4233
commit 533054b8a0
4 changed files with 10 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ type BridgeConfig struct {
Initial BackfillLimitPart `yaml:"initial"`
Missed BackfillLimitPart `yaml:"missed"`
} `yaml:"forward_limits"`
MaxGuildMembers int `yaml:"max_guild_members"`
} `yaml:"backfill"`
Encryption bridgeconfig.EncryptionConfig `yaml:"encryption"`

View File

@@ -72,6 +72,7 @@ func DoUpgrade(helper *up.Helper) {
helper.Copy(up.Int, "bridge", "backfill", "forward_limits", "initial", "channel")
helper.Copy(up.Int, "bridge", "backfill", "forward_limits", "missed", "dm")
helper.Copy(up.Int, "bridge", "backfill", "forward_limits", "missed", "channel")
helper.Copy(up.Int, "bridge", "backfill", "max_guild_members")
helper.Copy(up.Bool, "bridge", "encryption", "allow")
helper.Copy(up.Bool, "bridge", "encryption", "default")
helper.Copy(up.Bool, "bridge", "encryption", "require")