summary refs log tree commit diff stats
path: root/svc
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-08 02:22:58 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-08 02:29:36 -0400
commite34697cafe9e88964c46e74baa7c6b978a29bdfd (patch)
tree1b25968e7d1e0f26f94a4e81503edf7090269423 /svc
parenta5a32e7a317dd5cf156e52a71d7be432d0594bf7 (diff)
downloadgetwtxt-e34697cafe9e88964c46e74baa7c6b978a29bdfd.tar.gz
template panic fix v0.2.4
Diffstat (limited to 'svc')
-rw-r--r--svc/init.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/svc/init.go b/svc/init.go
index b688e5d..79a542a 100644
--- a/svc/init.go
+++ b/svc/init.go
@@ -1,6 +1,7 @@
 package svc // import "github.com/getwtxt/getwtxt/svc"
 
 import (
+	"html/template"
 	"log"
 	"os"
 	"os/signal"
@@ -10,7 +11,7 @@ import (
 	"github.com/spf13/pflag"
 )
 
-const getwtxt = "0.2.3"
+const getwtxt = "0.2.4"
 
 var (
 	flagVersion  *bool   = pflag.BoolP("version", "v", false, "Display version information, then exit.")
@@ -31,7 +32,7 @@ var closeLog = make(chan bool, 1)
 // initialization
 var dbChan = make(chan dbase, 1)
 
-var tmpls = initTemplates()
+var tmpls *template.Template
 
 var twtxtCache = registry.NewIndex()
 
@@ -61,6 +62,7 @@ func initSvc() {
 	initLogging()
 	initDatabase()
 	go cacheAndPush()
+	tmpls = initTemplates()
 	watchForInterrupt()
 }