diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-06 18:26:16 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-08 02:29:28 -0400 |
commit | 78f4d8a6c1f8c41543dd5c1522ec1100a52a1283 (patch) | |
tree | e5db1bcf37e647aa8caec5902b32c6f9ea9dbff1 /svc/init.go | |
parent | 3eb5a0321ea6e70a7ad3234efc9a0c1263833389 (diff) | |
download | getwtxt-78f4d8a6c1f8c41543dd5c1522ec1100a52a1283.tar.gz |
sqlite functionality added
Diffstat (limited to 'svc/init.go')
-rw-r--r-- | svc/init.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svc/init.go b/svc/init.go index 8e9bb20..7db5303 100644 --- a/svc/init.go +++ b/svc/init.go @@ -101,11 +101,10 @@ func watchForInterrupt() { db := <-dbChan switch dbType := db.(type) { - case *dbLevel: - lvl := dbType - err := lvl.db.Close() - errLog("", err) + errLog("", dbType.db.Close()) + case *dbSqlite: + errLog("", dbType.db.Close()) } if !confObj.StdoutLogging { |