diff options
Diffstat (limited to 'svc/db.go')
-rw-r--r-- | svc/db.go | 8 |
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() |