From ece8a01fb1ec9417c1fc433a665024cc52dbf183 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 21 May 2019 16:05:37 -0400 Subject: missing mutex rlock for confobj --- init.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.go b/init.go index 639a78b..97a998c 100644 --- a/init.go +++ b/init.go @@ -214,7 +214,9 @@ func initTemplates() *template.Template { // Pull DB data into cache, if available. func initDatabase() { + confObj.mu.RLock() db, err := leveldb.OpenFile(confObj.dbPath, nil) + confObj.mu.RUnlock() if err != nil { log.Fatalf("%v\n", err) } -- cgit 1.4.1-2-gfad0