diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-04 23:39:51 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-05 00:12:53 -0400 |
commit | 71971db6544db3602b02bdee7dbd62a84e4be7ef (patch) | |
tree | 8b8109b6377994a7c9225ff4ce5df7ffadc4c617 | |
parent | 35e31f00e82762aec1d849d691f28b534214201d (diff) | |
download | getwtxt-71971db6544db3602b02bdee7dbd62a84e4be7ef.tar.gz |
moved cacheAndPush() outside of initDatabase()
-rw-r--r-- | init.go | 2 |
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 |