summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-11 00:40:29 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-11 04:54:48 -0400
commit1d9cef515a16602b7dc26b2fe06032b5e731b48e (patch)
tree095f609e91be1ba75378bd79ceaa5f37eac4e744
parent40357b7bc536665812adc51998ecc00d725f2aaf (diff)
downloadgetwtxt-1d9cef515a16602b7dc26b2fe06032b5e731b48e.tar.gz
dbLevel.Push() and dbLevel.Pull() now expecting pointer receiver only
-rw-r--r--svc/leveldb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/svc/leveldb.go b/svc/leveldb.go
index 455d8b9..c39bcbf 100644
--- a/svc/leveldb.go
+++ b/svc/leveldb.go
@@ -13,7 +13,7 @@ type dbLevel struct {
 	db *leveldb.DB
 }
 
-func (lvl dbLevel) push() error {
+func (lvl *dbLevel) push() error {
 
 	twtxtCache.Mu.RLock()
 	var dbBasket = &leveldb.Batch{}
@@ -45,7 +45,7 @@ func (lvl dbLevel) push() error {
 	return lvl.db.Write(dbBasket, nil)
 }
 
-func (lvl dbLevel) pull() {
+func (lvl *dbLevel) pull() {
 
 	iter := lvl.db.NewIterator(nil, nil)