summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-11 05:33:14 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-11 05:33:14 -0400
commit1349bbc6e6627f357065602e085be762aab06383 (patch)
treecbcc0103606674cdd9826c970ed113e6d7b29341
parent4ff0f5038aeca70ad76296ad3c9f054f4cfb5877 (diff)
downloadgetwtxt-1349bbc6e6627f357065602e085be762aab06383.tar.gz
push() changes v0.3.3
-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]