summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-04 23:39:51 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-05 00:12:53 -0400
commit71971db6544db3602b02bdee7dbd62a84e4be7ef (patch)
tree8b8109b6377994a7c9225ff4ce5df7ffadc4c617
parent35e31f00e82762aec1d849d691f28b534214201d (diff)
downloadgetwtxt-71971db6544db3602b02bdee7dbd62a84e4be7ef.tar.gz
moved cacheAndPush() outside of initDatabase()
-rw-r--r--init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.go b/init.go
index 18a3d96..8ee77ad 100644
--- a/init.go
+++ b/init.go
@@ -64,6 +64,7 @@ func init() {
 	initLogging()
 	tmpls = initTemplates()
 	initDatabase()
+	go cacheAndPush()
 	watchForInterrupt()
 }
 
@@ -286,7 +287,6 @@ func initDatabase() {
 	dbChan <- db
 
 	pullDatabase()
-	go cacheAndPush()
 }
 
 // Watch for SIGINT aka ^C