···97979898 // Check if the PDS is still authoritative
9999 // if not we don't want to be propagating this account event
100100- if account.GetPDS() != host.ID {
100100+ if account.GetPDS() != host.ID && !r.Config.SkipAccountHostCheck {
101101 r.Logger.Error("account event from non-authoritative pds",
102102 "seq", env.RepoAccount.Seq,
103103 "did", env.RepoAccount.Did,
···218218 return err
219219 }
220220221221- if account.GetPDS() != host.ID {
221221+ if account.GetPDS() != host.ID && !r.Config.SkipAccountHostCheck {
222222 repoCommitsResultCounter.WithLabelValues(host.Host, "noauth").Inc()
223223 return fmt.Errorf("event from non-authoritative pds")
224224 }
+1
cmd/relayered/relay/relay.go
···4646 ConcurrencyPerPDS int64
4747 MaxQueuePerPDS int64
4848 ApplyPDSClientSettings func(c *xrpc.Client)
4949+ SkipAccountHostCheck bool // XXX: only used for testing
4950}
50515152func DefaultRelayConfig() *RelayConfig {