mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-10 17:00:18 +01:00
calm revive a bit.
This commit is contained in:
parent
7f69467f26
commit
493da71d53
@ -127,7 +127,7 @@ func (ldb *LevelDBBackend) Shutdown() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ldbs *LevelDBSession) Del(hash, key []byte) (success bool, err error) {
|
func (ldbs *LevelDBSession) Del(_, key []byte) (success bool, err error) {
|
||||||
if key, err = ldbs.backend.decoder(key); err != nil {
|
if key, err = ldbs.backend.decoder(key); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ func (ldbs *LevelDBSession) Del(hash, key []byte) (success bool, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ldbs *LevelDBSession) Fetch(hash, key []byte) (value []byte, err error) {
|
func (ldbs *LevelDBSession) Fetch(_, key []byte) (value []byte, err error) {
|
||||||
if key, err = ldbs.backend.decoder(key); err != nil {
|
if key, err = ldbs.backend.decoder(key); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -179,7 +179,7 @@ func keyExists(db *leveldb.DB, key []byte) (exists bool, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ldbs *LevelDBSession) Store(hash, key, value []byte) (exists bool, err error) {
|
func (ldbs *LevelDBSession) Store(_, key, value []byte) (exists bool, err error) {
|
||||||
origKey := key
|
origKey := key
|
||||||
if key, err = ldbs.backend.decoder(key); err != nil {
|
if key, err = ldbs.backend.decoder(key); err != nil {
|
||||||
return
|
return
|
||||||
@ -235,7 +235,7 @@ func (ldbs *LevelDBSession) CommitTransaction() (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ldbs *LevelDBSession) AllKeys(
|
func (ldbs *LevelDBSession) AllKeys(
|
||||||
hash []byte,
|
_ []byte,
|
||||||
done <-chan struct{}) (<-chan []byte, int, error) {
|
done <-chan struct{}) (<-chan []byte, int, error) {
|
||||||
|
|
||||||
ro := leveldb.NewReadOptions()
|
ro := leveldb.NewReadOptions()
|
||||||
@ -283,7 +283,7 @@ func (ldbs *LevelDBSession) AllKeys(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ldbs *LevelDBSession) SpatialQuery(
|
func (ldbs *LevelDBSession) SpatialQuery(
|
||||||
hash, first, second []byte,
|
_, first, second []byte,
|
||||||
done <-chan struct{}) (<-chan Block, error) {
|
done <-chan struct{}) (<-chan Block, error) {
|
||||||
|
|
||||||
if ldbs.backend.interleaved {
|
if ldbs.backend.interleaved {
|
||||||
|
Loading…
Reference in New Issue
Block a user