summary refs log tree commit diff stats
path: root/svc
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-08 03:08:59 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-08 03:08:59 -0400
commit18fc34c704203f8bffa6ecc35330cebc6c1c10ce (patch)
tree28bd9d69a751838111e1bd5d0baacacb3b531741 /svc
parentfb836e1be94604796c5aa95dafcba9c87488afe0 (diff)
downloadgetwtxt-18fc34c704203f8bffa6ecc35330cebc6c1c10ce.tar.gz
runtime bugfix for sqlite3
Diffstat (limited to 'svc')
-rw-r--r--svc/init.go2
-rw-r--r--svc/sqlite.go3
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()