Decode from stream directly

This commit is contained in:
obscuren
2014-12-23 15:18:48 +01:00
parent 1382e8d84b
commit 34f72ddb3d
2 changed files with 6 additions and 3 deletions

View File

@ -71,6 +71,10 @@ func (self *LDBDatabase) NewIterator() iterator.Iterator {
return self.db.NewIterator(nil, nil)
}
func (self *LDBDatabase) Write(batch *leveldb.Batch) error {
return self.db.Write(batch, nil)
}
func (self *LDBDatabase) Close() {
// Close the leveldb database
self.db.Close()