fixed few minor issues while renaming variable

This commit is contained in:
h4ck3r-04 2024-10-29 11:56:55 +05:30
parent 9250cd913e
commit fa520ccb39
1 changed files with 5 additions and 5 deletions

View File

@ -506,13 +506,13 @@ func (t Tuple) countIncompleteVersionstamps() int {
incompleteCount := 0
for _, el := range t {
switch err := el.(type) {
switch e := el.(type) {
case Versionstamp:
if err.TransactionVersion == incompleteTransactionVersion {
if e.TransactionVersion == incompleteTransactionVersion {
incompleteCount++
}
case Tuple:
incompleteCount += err.countIncompleteVersionstamps()
incompleteCount += e.countIncompleteVersionstamps()
}
}
@ -754,8 +754,8 @@ func (t Tuple) FDBRangeKeys() (fdb.KeyConvertible, fdb.KeyConvertible) {
// (that is, all tuples of greater length than the Tuple of which the Tuple is a
// prefix).
func (t Tuple) FDBRangeKeySelectors() (fdb.Selectable, fdb.Selectable) {
b, err := t.FDBRangeKeys()
return fdb.FirstGreaterOrEqual(b), fdb.FirstGreaterOrEqual(err)
b, e := t.FDBRangeKeys()
return fdb.FirstGreaterOrEqual(b), fdb.FirstGreaterOrEqual(e)
}
func concat(a []byte, b ...byte) []byte {