test default config value
This commit is contained in:
parent
a84fdeae61
commit
163093ef67
10
client.go
10
client.go
@ -29,12 +29,14 @@ func loadClients() error {
|
|||||||
|
|
||||||
muxClients.Lock()
|
muxClients.Lock()
|
||||||
for _, c := range clts {
|
for _, c := range clts {
|
||||||
cx := ChirpClient{
|
cx := ChirpClient{}
|
||||||
Config: &ChirpConfig{
|
|
||||||
InterceptPillage: true,
|
|
||||||
}}
|
|
||||||
copier.Copy(&cx, &c)
|
copier.Copy(&cx, &c)
|
||||||
cx.Active = false
|
cx.Active = false
|
||||||
|
if cx.Config == nil {
|
||||||
|
cx.Config = &ChirpConfig{
|
||||||
|
InterceptPillage: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
cx.MQ.Connection, err = amqp.Dial("amqp://" + cx.MQ.User + ":" + cx.MQ.Password + "@" + cx.MQ.Host + "/" + cx.MQ.Path)
|
cx.MQ.Connection, err = amqp.Dial("amqp://" + cx.MQ.User + ":" + cx.MQ.Password + "@" + cx.MQ.Host + "/" + cx.MQ.Path)
|
||||||
logOnError(err, "loadClients : Failed to connect to RabbitMQ")
|
logOnError(err, "loadClients : Failed to connect to RabbitMQ")
|
||||||
|
Loading…
Reference in New Issue
Block a user