From 18fc34c704203f8bffa6ecc35330cebc6c1c10ce Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Sat, 8 Jun 2019 03:08:59 -0400 Subject: runtime bugfix for sqlite3 --- svc/init.go | 2 +- svc/sqlite.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/svc/init.go b/svc/init.go index 79a542a..4408ecf 100644 --- a/svc/init.go +++ b/svc/init.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/pflag" ) -const getwtxt = "0.2.4" +const getwtxt = "0.3.0" var ( flagVersion *bool = pflag.BoolP("version", "v", false, "Display version information, then exit.") diff --git a/svc/sqlite.go b/svc/sqlite.go index 3f50402..69103dc 100644 --- a/svc/sqlite.go +++ b/svc/sqlite.go @@ -102,12 +102,13 @@ func (lite dbSqlite) pull() { twtxtCache.Mu.Lock() for rows.Next() { + var uid int var urls string var isUser bool var dataKey string var dBlob []byte - errLog("", rows.Scan(&urls, &isUser, &dataKey, &dBlob)) + errLog("", rows.Scan(&uid, &urls, &isUser, &dataKey, &dBlob)) if !isUser { remoteRegistries.Mu.Lock() -- cgit 1.4.1-2-gfad0