summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--go.mod1
-rw-r--r--svc/leveldb.go3
2 files changed, 1 insertions, 3 deletions
diff --git a/go.mod b/go.mod
index 23b230c..c297c03 100644
--- a/go.mod
+++ b/go.mod
@@ -4,5 +4,6 @@ go 1.11
 
 require (
 	github.com/getwtxt/getwtxt/svc v0.0.0-20190611092730-64d24f3f43f7
+	github.com/go-logfmt/logfmt v0.4.0 // indirect
 	golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae // indirect
 )
diff --git a/svc/leveldb.go b/svc/leveldb.go
index 36b7946..655979a 100644
--- a/svc/leveldb.go
+++ b/svc/leveldb.go
@@ -14,7 +14,6 @@ type dbLevel struct {
 }
 
 func (lvl *dbLevel) push() error {
-
 	twtxtCache.Mu.RLock()
 	var dbBasket = &leveldb.Batch{}
 	for k, v := range twtxtCache.Users {
@@ -42,13 +41,11 @@ func (lvl *dbLevel) push() error {
 }
 
 func (lvl *dbLevel) pull() {
-
 	iter := lvl.db.NewIterator(nil, nil)
 
 	for iter.Next() {
 		key := string(iter.Key())
 		val := string(iter.Value())
-
 		split := strings.Split(key, "*")
 		urls := split[0]
 		field := split[1]