From 6246cacc17e8b90519143e717b7241e527678be9 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 7 Jun 2017 10:27:59 -0400 Subject: [PATCH] 11809: Prune collection cache asynchronously. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- services/keep-web/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/keep-web/cache.go b/services/keep-web/cache.go index b9e3e3e01f..79701658b4 100644 --- a/services/keep-web/cache.go +++ b/services/keep-web/cache.go @@ -176,7 +176,7 @@ func (c *cache) Get(arv *arvadosclient.ArvadosClient, targetID string, forceRelo collection: collection, }) if int64(len(collection["manifest_text"].(string))) > c.MaxCollectionBytes/int64(c.MaxCollectionEntries) { - c.pruneCollections() + go c.pruneCollections() } return collection, nil } -- 2.30.2