mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
just use setup (#1574)
All these functions are namespaced by their package anyway; just use setup().
This commit is contained in:
@@ -14,11 +14,11 @@ import (
|
||||
func init() {
|
||||
caddy.RegisterPlugin("erratic", caddy.Plugin{
|
||||
ServerType: "dns",
|
||||
Action: setupErratic,
|
||||
Action: setup,
|
||||
})
|
||||
}
|
||||
|
||||
func setupErratic(c *caddy.Controller) error {
|
||||
func setup(c *caddy.Controller) error {
|
||||
e, err := parseErratic(c)
|
||||
if err != nil {
|
||||
return plugin.Error("erratic", err)
|
||||
|
||||
Reference in New Issue
Block a user