kvdb+cmd: fix typos

This commit is contained in:
Thabokani
2023-12-30 19:47:41 +08:00
parent 55072bfd5e
commit b8d2fc3816
7 changed files with 9 additions and 9 deletions

View File

@@ -14,8 +14,8 @@ import (
// retried. When a new transaction is added to the queue, we first upgrade the
// read/write counts in the queue's own accounting to decide whether the new
// transaction has any conflicting dependencies. If the transaction does not
// conflict with any other, then it is comitted immediately, otherwise it'll be
// queued up for later exection.
// conflict with any other, then it is committed immediately, otherwise it'll be
// queued up for later execution.
// The algorithm is described in: http://www.cs.umd.edu/~abadi/papers/vll-vldb13.pdf
type commitQueue struct {
ctx context.Context

View File

@@ -63,7 +63,7 @@ func (tx *readWriteTx) ForEachBucket(fn func(key []byte) error) error {
return root.ForEach(func(key []byte, val []byte) error {
if val != nil {
// A non-nil value would mean that we have a non
// walletdb/kvdb compatibel database containing
// walletdb/kvdb compatible database containing
// arbitrary key/values.
return walletdb.ErrInvalid
}