mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-20 00:21:21 +00:00
Make it compile
This commit is contained in:
19
db/types.go
19
db/types.go
@ -54,12 +54,23 @@ type SetDeleter interface {
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
func BeginningKey() []byte {
|
||||
return []byte{}
|
||||
}
|
||||
|
||||
func EndingKey() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
/*
|
||||
Usage:
|
||||
|
||||
for itr.Seek(mykey); itr.Valid(); itr.Next() {
|
||||
var itr Iterator = ...
|
||||
defer itr.Release()
|
||||
|
||||
for ; itr.Valid(); itr.Next() {
|
||||
k, v := itr.Key(); itr.Value()
|
||||
....
|
||||
// ...
|
||||
}
|
||||
*/
|
||||
type Iterator interface {
|
||||
@ -106,6 +117,6 @@ type Iterator interface {
|
||||
// This method is safe to call when Valid returns false.
|
||||
GetError() error
|
||||
|
||||
// Close deallocates the given Iterator.
|
||||
Close()
|
||||
// Release deallocates the given Iterator.
|
||||
Release()
|
||||
}
|
||||
|
Reference in New Issue
Block a user