diff options
author | Vincent Ambo <tazjin@google.com> | 2019-09-09T15·41+0100 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2019-09-10T10·32+0100 |
commit | 4a58b0ab4d21473723834dec651c876da2dec220 (patch) | |
tree | cf24e5ee5c658390085d2244332f44783ba48b51 /tools/nixery/server/main.go | |
parent | 051eb77b3de81d9393e5c5443c06b62b6abf1535 (diff) |
feat(server): Cache built manifests to the GCS bucket
Caches manifests under `manifests/$cacheKey` in the GCS bucket and introduces two-tiered retrieval of manifests from the caches (local first, bucket second). There is some cleanup to be done in this code, but the initial version works.
Diffstat (limited to 'tools/nixery/server/main.go')
-rw-r--r-- | tools/nixery/server/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nixery/server/main.go b/tools/nixery/server/main.go index 49db1cdf8a5f..9242a3731af0 100644 --- a/tools/nixery/server/main.go +++ b/tools/nixery/server/main.go @@ -125,7 +125,7 @@ type registryHandler struct { cfg *config.Config ctx *context.Context bucket *storage.BucketHandle - cache *builder.BuildCache + cache *builder.LocalCache } func (h *registryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |