diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-11 00:40:29 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-11 04:54:48 -0400 |
commit | 1d9cef515a16602b7dc26b2fe06032b5e731b48e (patch) | |
tree | 095f609e91be1ba75378bd79ceaa5f37eac4e744 /svc | |
parent | 40357b7bc536665812adc51998ecc00d725f2aaf (diff) | |
download | getwtxt-1d9cef515a16602b7dc26b2fe06032b5e731b48e.tar.gz |
dbLevel.Push() and dbLevel.Pull() now expecting pointer receiver only
Diffstat (limited to 'svc')
-rw-r--r-- | svc/leveldb.go | 4 |
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) |