add term and comment caches, adjust limits

This commit is contained in:
Your Name 2021-08-17 08:34:21 -04:00
parent 45368491d7
commit 3d0c3315eb
1 changed files with 2 additions and 2 deletions

View File

@ -170,11 +170,11 @@ func main() {
var TC MetadataCache var TC MetadataCache
TC.objects = make(map[int64]metadataObject) TC.objects = make(map[int64]metadataObject)
TC.sizeLimit = 5000 TC.sizeLimit = 5000
TC.objectType = "p" TC.objectType = "t"
var CC MetadataCache var CC MetadataCache
CC.objects = make(map[int64]metadataObject) CC.objects = make(map[int64]metadataObject)
CC.sizeLimit = 100 CC.sizeLimit = 100
CC.objectType = "p" CC.objectType = "c"
if err := os.RemoveAll(*sockpath); err != nil { if err := os.RemoveAll(*sockpath); err != nil {
log.Fatal(err) log.Fatal(err)