diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2018-04-09 19:47:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 19:47:06 +0800 |
commit | 0fac705ed0a2efcda4da9dce8971bbda73f299d5 (patch) | |
tree | e717d8a845bfd66c3882be23a6be21a4c40562b4 /ethdb | |
parent | 315b9b18df7994d56f3570c509fc60ad6e3d570f (diff) | |
download | go-tangerine-0fac705ed0a2efcda4da9dce8971bbda73f299d5.tar go-tangerine-0fac705ed0a2efcda4da9dce8971bbda73f299d5.tar.gz go-tangerine-0fac705ed0a2efcda4da9dce8971bbda73f299d5.tar.bz2 go-tangerine-0fac705ed0a2efcda4da9dce8971bbda73f299d5.tar.lz go-tangerine-0fac705ed0a2efcda4da9dce8971bbda73f299d5.tar.xz go-tangerine-0fac705ed0a2efcda4da9dce8971bbda73f299d5.tar.zst go-tangerine-0fac705ed0a2efcda4da9dce8971bbda73f299d5.zip |
compression/rle: delete RLE compression (#16468)
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index 30ed37dc7..243b7f8d3 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -91,9 +91,6 @@ func (db *LDBDatabase) Path() string { // Put puts the given key / value to the queue func (db *LDBDatabase) Put(key []byte, value []byte) error { - // Generate the data to write to disk, update the meter and write - //value = rle.Compress(value) - return db.db.Put(key, value, nil) } @@ -103,18 +100,15 @@ func (db *LDBDatabase) Has(key []byte) (bool, error) { // Get returns the given key if it's present. func (db *LDBDatabase) Get(key []byte) ([]byte, error) { - // Retrieve the key and increment the miss counter if not found dat, err := db.db.Get(key, nil) if err != nil { return nil, err } return dat, nil - //return rle.Decompress(dat) } // Delete deletes the key from the queue and database func (db *LDBDatabase) Delete(key []byte) error { - // Execute the actual operation return db.db.Delete(key, nil) } |