Fix addresses
This commit is contained in:
parent
f6b5b2c52f
commit
1c430f4552
|
@ -51,9 +51,9 @@ func (c *Kafka) Defaults() {
|
||||||
c.Database.Defaults()
|
c.Database.Defaults()
|
||||||
if c.UseNATS {
|
if c.UseNATS {
|
||||||
c.UseNaffka = false
|
c.UseNaffka = false
|
||||||
c.Addresses = []string{"localhost:2181"}
|
|
||||||
} else {
|
|
||||||
c.Addresses = []string{"nats://127.0.0.1:4222"}
|
c.Addresses = []string{"nats://127.0.0.1:4222"}
|
||||||
|
} else {
|
||||||
|
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