Fix compile issues
This commit is contained in:
parent
dc09e16973
commit
e89db5898d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue