aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache.go
diff options
context:
space:
mode:
authorvince <vincetiu8@gmail.com>2020-08-26 09:04:40 +0800
committervince <vincetiu8@gmail.com>2020-08-26 09:27:31 +0800
commit2440a208f6e0d18f67f4e022b1c28996ee226af0 (patch)
tree39a5d712dc1dc3c4101190a74551e0d99efdf92f /cache/repo_cache.go
parent4d678f3e057aea30d1396240d88e622c833a177f (diff)
downloadgit-bug-2440a208f6e0d18f67f4e022b1c28996ee226af0.tar.gz
Fix bugs and cleanup code
Diffstat (limited to 'cache/repo_cache.go')
-rw-r--r--cache/repo_cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go
index d13ce65c..563fac6b 100644
--- a/cache/repo_cache.go
+++ b/cache/repo_cache.go
@@ -22,7 +22,7 @@ import (
const formatVersion = 2
// The maximum number of bugs loaded in memory. After that, eviction will be done.
-const defaultMaxLoadedBugs = 100
+const defaultMaxLoadedBugs = 1000
var _ repository.RepoCommon = &RepoCache{}
@@ -160,7 +160,7 @@ func (c *RepoCache) Close() error {
c.identities = make(map[entity.Id]*IdentityCache)
c.identitiesExcerpts = nil
- c.bugs = nil
+ c.bugs = make(map[entity.Id]*BugCache)
c.bugExcerpts = nil
lockPath := repoLockFilePath(c.repo)