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/sqlite.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/sqlite.go')
-rw-r--r-- | svc/sqlite.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/svc/sqlite.go b/svc/sqlite.go index 40a7ff2..dd6d6de 100644 --- a/svc/sqlite.go +++ b/svc/sqlite.go @@ -43,10 +43,6 @@ func initSqlite() *dbSqlite { } func (lite *dbSqlite) push() error { - confObj.Mu.Lock() - confObj.LastPush = time.Now() - confObj.Mu.Unlock() - if err := lite.db.Ping(); err != nil { lite = initSqlite() } |