Skip to content

Commit

Permalink
Fix lock
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Sep 12, 2024
1 parent 3dec465 commit 544d10c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,7 @@ func (ndb *nodeDB) getPrefixIterator(prefix []byte) (corestore.Iterator, error)
}

func (ndb *nodeDB) getFirstVersion() (int64, error) {
ndb.mtx.Lock()
firstVersion := ndb.firstVersion
ndb.mtx.Unlock()

if firstVersion > 0 {
return firstVersion, nil
Expand Down

0 comments on commit 544d10c

Please sign in to comment.