From 9e85cba0d06025983a1a747bfc06c9955388d9c0 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 16 Jul 2017 23:31:19 +0900 Subject: Reduce memory footprint of Item struct --- src/cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cache.go') diff --git a/src/cache.go b/src/cache.go index 272a78be..0540bdcf 100644 --- a/src/cache.go +++ b/src/cache.go @@ -33,8 +33,8 @@ func (cc *ChunkCache) Add(chunk *Chunk, key string, list []*Result) { (*qc)[key] = list } -// Find is called to lookup ChunkCache -func (cc *ChunkCache) Find(chunk *Chunk, key string) []*Result { +// Lookup is called to lookup ChunkCache +func (cc *ChunkCache) Lookup(chunk *Chunk, key string) []*Result { if len(key) == 0 || !chunk.IsFull() { return nil } -- cgit v1.2.3