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:
parent
1c430f4552
commit
43642af194
1 changed files with 1 additions and 6 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue