Skip to content

Commit efe9c08

Browse files
committed
chore: add timeouts plugin
#719
1 parent d9b96af commit efe9c08

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

cmd/node-cache/app/cache_app.go

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,26 @@ var (
4141
// https://github.com/coredns/coredns/blob/master/plugin.cfg
4242
// Source: https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/#build-with-external-golang-source-code
4343
var directives = []string{
44-
"reload",
45-
"bufsize",
46-
"bind",
47-
"debug",
48-
"trace",
49-
"health",
50-
"pprof",
51-
"prometheus",
52-
"errors",
53-
"log",
54-
"dns64",
55-
"loadbalance",
56-
"cache",
57-
"rewrite",
58-
"template",
59-
"hosts",
60-
"loop",
61-
"forward",
62-
"whoami",
44+
"timeouts",
45+
"reload",
46+
"bufsize",
47+
"bind",
48+
"debug",
49+
"trace",
50+
"health",
51+
"pprof",
52+
"prometheus",
53+
"errors",
54+
"log",
55+
"dns64",
56+
"loadbalance",
57+
"cache",
58+
"rewrite",
59+
"template",
60+
"hosts",
61+
"loop",
62+
"forward",
63+
"whoami",
6364
}
6465

6566
// ConfigParams lists the configuration options that can be provided to node-cache
@@ -339,4 +340,4 @@ func isFileExists(path string) bool {
339340
return false
340341
}
341342
return !f.IsDir()
342-
}
343+
}

0 commit comments

Comments
 (0)