From b0f34cb8cd68525cd8841972bb4eb6e82b3ab8eb Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Fri, 2 Mar 2018 14:43:57 -0500 Subject: [PATCH] export cache Signed-off-by: Jess Frazelle --- worker/base/worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/base/worker.go b/worker/base/worker.go index 4b94ca8d7..d8b5c4d9f 100644 --- a/worker/base/worker.go +++ b/worker/base/worker.go @@ -61,7 +61,7 @@ type Worker struct { WorkerOpt CacheManager cache.Manager SourceManager *source.Manager - cache instructioncache.InstructionCache + Cache instructioncache.InstructionCache Exporters map[string]exporter.Exporter ImageSource source.Source CacheExporter *cacheimport.CacheExporter // TODO: remove @@ -201,7 +201,7 @@ func NewWorker(opt WorkerOpt) (*Worker, error) { WorkerOpt: opt, CacheManager: cm, SourceManager: sm, - cache: ic, + Cache: ic, Exporters: exporters, ImageSource: is, CacheExporter: ce, @@ -269,7 +269,7 @@ func (w *Worker) Exporter(name string) (exporter.Exporter, error) { } func (w *Worker) InstructionCache() instructioncache.InstructionCache { - return w.cache + return w.Cache } // utility function. could be moved to the constructor logic?