From b14ebcadae1dc0148f1334f37c1c33db17cc06c0 Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Sun, 30 Aug 2020 08:16:19 -0500 Subject: [PATCH] Unexport statik filesystem --- .gitignore | 2 +- http/handler.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 8c58b64ee..7a41479b9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ vendor .DS_Store build *~ -lattice \ No newline at end of file +lattice diff --git a/http/handler.go b/http/handler.go index 2da8c4c67..c8953984c 100644 --- a/http/handler.go +++ b/http/handler.go @@ -56,7 +56,7 @@ import ( type Handler struct { Handler http.Handler - FileSystem pilosa.FileSystem + fileSystem pilosa.FileSystem logger logger.Logger @@ -113,7 +113,7 @@ func OptHandlerAPI(api *pilosa.API) handlerOption { func OptHandlerFileSystem(fs pilosa.FileSystem) handlerOption { return func(h *Handler) error { - h.FileSystem = fs + h.fileSystem = fs return nil } } @@ -154,7 +154,7 @@ func NewHandler(opts ...handlerOption) (*Handler, error) { } }) handler := &Handler{ - FileSystem: pilosa.NopFileSystem, + fileSystem: pilosa.NopFileSystem, logger: logger.NopLogger, closeTimeout: time.Second * 30, } @@ -466,7 +466,7 @@ type statikHandler struct { // NewStatikHandler returns a new instance of statikHandler func NewStatikHandler(h *Handler) statikHandler { - fs, err := h.FileSystem.New() + fs, err := h.fileSystem.New() if err == nil { h.logger.Printf("enabled Lattice UI (%s) at %s", h.api.LatticeVersion(), h.api.Node().URI) }