diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-11 04:14:32 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-11 04:54:52 -0400 |
commit | 367e44f691dbd5647a7d6ae7bdbd7857b35d92a8 (patch) | |
tree | d6237e3bd3cd483801f04f19f41a41840845764e /svc/init_test.go | |
parent | 7cc45ff9314bb3343760811318b8bc238e6d945a (diff) | |
download | getwtxt-367e44f691dbd5647a7d6ae7bdbd7857b35d92a8.tar.gz |
eliminated confObj.LastCache and confObj.LastPush. Unneeded when using ticker for intervals.
Diffstat (limited to 'svc/init_test.go')
-rw-r--r-- | svc/init_test.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/svc/init_test.go b/svc/init_test.go index 51c969a..8b68839 100644 --- a/svc/init_test.go +++ b/svc/init_test.go @@ -7,7 +7,6 @@ import ( "os" "strings" "sync" - "time" "github.com/getwtxt/registry" "github.com/spf13/viper" @@ -80,9 +79,6 @@ func testConfig() { confObj.DBInterval = viper.GetDuration("DatabasePushInterval") log.Printf("Database push interval: %v\n", confObj.DBInterval) - confObj.LastCache = time.Now() - confObj.LastPush = time.Now() - confObj.Instance.Vers = Vers confObj.Instance.Name = viper.GetString("Instance.SiteName") confObj.Instance.URL = viper.GetString("Instance.URL") |