Fix compile issues

This commit is contained in:
Simon Beck 2021-10-05 19:59:09 +02:00
parent dc09e16973
commit e89db5898d
1 changed files with 6 additions and 5 deletions

View File

@ -2,12 +2,13 @@ package plugin
import (
"errors"
"github.com/caddyserver/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/rverst/coredns-redis"
"strconv"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
redis "github.com/rverst/coredns-redis"
)
func init() {
@ -30,7 +31,7 @@ func setup(c *caddy.Controller) error {
}
p := &Plugin{
Redis: r,
Redis: r,
loadZoneTicker: time.NewTicker(time.Duration(r.DefaultTtl) * time.Second),
}
p.startZoneNameCache()