summary refs log tree commit diff stats
path: root/svc/db.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-06 02:20:38 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-06 02:22:54 -0400
commit1a15258ee5d93ffef8f8c768ff725d7429a3248c (patch)
tree9a89321ce5c84509ec778cad3b9abb983026fc8b /svc/db.go
parent7a75c4fc399a1c8e545e9e8d77ecf5bae54a3b96 (diff)
downloadgetwtxt-1a15258ee5d93ffef8f8c768ff725d7429a3248c.tar.gz
renamed functions
Diffstat (limited to 'svc/db.go')
-rw-r--r--svc/db.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/svc/db.go b/svc/db.go
index 10ea28d..2289771 100644
--- a/svc/db.go
+++ b/svc/db.go
@@ -37,10 +37,10 @@ func initDatabase() {
 
 	dbChan <- db
 
-	pullDatabase()
+	pullDB()
 }
 
-func checkDBtime() bool {
+func dbTimer() bool {
 	confObj.Mu.RLock()
 	answer := time.Since(confObj.LastPush) > confObj.DBInterval
 	confObj.Mu.RUnlock()
@@ -50,14 +50,14 @@ func checkDBtime() bool {
 
 // Pushes the registry's cache data to a local
 // database for safe keeping.
-func pushDatabase() error {
+func pushDB() error {
 	db := <-dbChan
 	dbChan <- db
 
 	return db.push()
 }
 
-func pullDatabase() {
+func pullDB() {
 	db := <-dbChan
 	dbChan <- db
 	db.pull()