mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
lower cache min limit (#2065)
This commit is contained in:
committed by
Miek Gieben
parent
a21755479d
commit
684c35d56b
4
plugin/pkg/cache/cache.go
vendored
4
plugin/pkg/cache/cache.go
vendored
@@ -31,8 +31,8 @@ type shard struct {
|
||||
// New returns a new cache.
|
||||
func New(size int) *Cache {
|
||||
ssize := size / shardSize
|
||||
if ssize < 512 {
|
||||
ssize = 512
|
||||
if ssize < 4 {
|
||||
ssize = 4
|
||||
}
|
||||
|
||||
c := &Cache{}
|
||||
|
||||
Reference in New Issue
Block a user