This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
SetDeleter/Batch separation
pull/1842/head
Jae Kwon
7 years ago
parent
56e51bc113
commit
17dc8a7449
1 changed files
with
5 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
db/db.go
+ 5
- 1
db/db.go
View File
@ -27,9 +27,13 @@ type CacheDB interface {
Write
(
)
// Write to the underlying DB
Write
(
)
// Write to the underlying DB
}
}
type
Batch
interface
{
type
SetDeleter
interface
{
Set
(
key
,
value
[
]
byte
)
Set
(
key
,
value
[
]
byte
)
Delete
(
key
[
]
byte
)
Delete
(
key
[
]
byte
)
}
type
Batch
interface
{
SetDeleter
Write
(
)
Write
(
)
}
}
Write
Preview
Loading…
Cancel
Save