From 5fe99ab07a19e8d902cfa87a6c100e191a5e4d96 Mon Sep 17 00:00:00 2001 From: imxyb Date: Mon, 2 Nov 2020 22:23:14 +0800 Subject: [PATCH] remote unless int func --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index ec83a76..7ab1a37 100644 --- a/cache.go +++ b/cache.go @@ -42,7 +42,7 @@ func New(config *Configuration) *Cache { buckets: make([]*bucket, config.buckets), control: make(chan interface{}), } - for i := 0; i < int(config.buckets); i++ { + for i := 0; i < config.buckets; i++ { c.buckets[i] = &bucket{ lookup: make(map[string]*Item), }