diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-08 01:04:38 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-08 02:29:33 -0400 |
commit | a5a32e7a317dd5cf156e52a71d7be432d0594bf7 (patch) | |
tree | c266a1652f78ec446b2eb85f2371e0cfabed65ff /svc/init.go | |
parent | e6beae32cd45ea0057e1a5bc5e4b3f2a098a1a1e (diff) | |
download | getwtxt-a5a32e7a317dd5cf156e52a71d7be432d0594bf7.tar.gz |
split db-specific funcs into separate files
Diffstat (limited to 'svc/init.go')
-rw-r--r-- | svc/init.go | 4 |
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() |