plugin/forward: fix panic when expire
is configured as 0s (#4115)
Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>
This commit is contained in:
parent
0329de55c7
commit
f96a2f1f69
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ func newTransport(addr string) *Transport {
|
|||
|
||||
// connManagers manages the persistent connection cache for UDP and TCP.
|
||||
func (t *Transport) connManager() {
|
||||
ticker := time.NewTicker(t.expire)
|
||||
ticker := time.NewTicker(defaultExpire)
|
||||
Wait:
|
||||
for {
|
||||
select {
|
||||
|
|
Loading…
Add table
Reference in a new issue