config default times

alpha v1.0.4
alex 2023-01-07 19:43:19 +01:00
parent 0ba2d95e8d
commit bf159f747c
1 changed files with 3 additions and 5 deletions

View File

@ -31,9 +31,9 @@ type Config struct {
}
var ConfigDefault = Config{
ReconnectDelay: 5,
ReInitDelay: 2,
ResendDelay: 5,
ReconnectDelay: 5 * time.Second,
ReInitDelay: 2 * time.Second,
ResendDelay: 5 * time.Second,
}
type ExchangeSettings struct {
@ -108,8 +108,6 @@ func NewClient(exchangeSettings ExchangeSettings, queueSettings QueueSettings, c
done: make(chan bool),
}
log.Println("config", config)
go client.handleReconnect(addr)
return &client
}