lower cache min limit (#2065)
This commit is contained in:
parent
a21755479d
commit
684c35d56b
2 changed files with 17 additions and 6 deletions
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{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue