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/conf.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/conf.go')
-rw-r--r-- | svc/conf.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/svc/conf.go b/svc/conf.go index ccd819c..8abb4a6 100644 --- a/svc/conf.go +++ b/svc/conf.go @@ -24,8 +24,6 @@ type Configuration struct { StdoutLogging bool `yaml:"StdoutLogging"` CacheInterval time.Duration `yaml:"StatusFetchInterval"` DBInterval time.Duration `yaml:"DatabasePushInterval"` - LastCache time.Time `yaml:"-"` - LastPush time.Time `yaml:"-"` Instance `yaml:"Instance"` } @@ -249,9 +247,6 @@ func bindConfig() { 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") |