Cleaned up some printf debugging.
This commit is contained in:
parent
b15a05676c
commit
41800f1a13
@ -49,7 +49,6 @@ func NewLRU(size int64) *Lru {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewSingleFileCache(pathlike string) *SingleFileCache {
|
func NewSingleFileCache(pathlike string) *SingleFileCache {
|
||||||
|
|
||||||
entry := newLRUEntry(pathlike)
|
entry := newLRUEntry(pathlike)
|
||||||
sfc := SingleFileCache{path: pathlike, entry: entry}
|
sfc := SingleFileCache{path: pathlike, entry: entry}
|
||||||
return &sfc
|
return &sfc
|
||||||
@ -64,8 +63,6 @@ func (l *Lru) Get(key string) (*LruEntry, bool) {
|
|||||||
} else {
|
} else {
|
||||||
if exists {
|
if exists {
|
||||||
entry.mostRecentAccess = time.Now()
|
entry.mostRecentAccess = time.Now()
|
||||||
} else {
|
|
||||||
fmt.Printf("vinegarUtil miss for '%s'\n", key)
|
|
||||||
}
|
}
|
||||||
return entry, exists
|
return entry, exists
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user