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 544d10c commit 37c3283
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 @@ -809,8 +809,6 @@ func (ndb *nodeDB) getFirstVersion() (int64, error) {
}

func (ndb *nodeDB) resetFirstVersion(version int64) {
ndb.mtx.Lock()
defer ndb.mtx.Unlock()
ndb.firstVersion = version
}

Expand Down

0 comments on commit 37c3283

Please sign in to comment.