summary refs log tree commit diff stats
path: root/svc/init.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-08 01:04:38 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-08 02:29:33 -0400
commita5a32e7a317dd5cf156e52a71d7be432d0594bf7 (patch)
treec266a1652f78ec446b2eb85f2371e0cfabed65ff /svc/init.go
parente6beae32cd45ea0057e1a5bc5e4b3f2a098a1a1e (diff)
downloadgetwtxt-a5a32e7a317dd5cf156e52a71d7be432d0594bf7.tar.gz
split db-specific funcs into separate files
Diffstat (limited to 'svc/init.go')
-rw-r--r--svc/init.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/svc/init.go b/svc/init.go
index 7db5303..b688e5d 100644
--- a/svc/init.go
+++ b/svc/init.go
@@ -1,7 +1,6 @@
 package svc // import "github.com/getwtxt/getwtxt/svc"
 
 import (
-	"html/template"
 	"log"
 	"os"
 	"os/signal"
@@ -32,7 +31,7 @@ var closeLog = make(chan bool, 1)
 // initialization
 var dbChan = make(chan dbase, 1)
 
-var tmpls *template.Template
+var tmpls = initTemplates()
 
 var twtxtCache = registry.NewIndex()
 
@@ -60,7 +59,6 @@ func initSvc() {
 	titleScreen()
 	initConfig()
 	initLogging()
-	tmpls = initTemplates()
 	initDatabase()
 	go cacheAndPush()
 	watchForInterrupt()