0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 20:23:41 +01:00

Don't change Addresses in Defaults

This commit is contained in:
Till Faelligen 2021-05-30 17:40:09 +02:00
parent 1c430f4552
commit 43642af194

View file

@ -49,12 +49,7 @@ func (k *Kafka) TopicFor(name string) string {
func (c *Kafka) Defaults() { func (c *Kafka) Defaults() {
c.UseNaffka = true c.UseNaffka = true
c.Database.Defaults() c.Database.Defaults()
if c.UseNATS {
c.UseNaffka = false
c.Addresses = []string{"nats://127.0.0.1:4222"}
} else {
c.Addresses = []string{"localhost:2181"} c.Addresses = []string{"localhost:2181"}
}
c.Database.ConnectionString = DataSource("file:naffka.db") c.Database.ConnectionString = DataSource("file:naffka.db")
c.TopicPrefix = "Dendrite" c.TopicPrefix = "Dendrite"