Skip to content

Commit

Permalink
Update stale comment on commitToDB (#3627)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald authored Dec 30, 2024
1 parent 15912af commit 8172d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/merkledb/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ func (v *view) CommitToDB(ctx context.Context) error {
return v.commitToDB(ctx)
}

// Commits the changes from [trieToCommit] to this view,
// this view to its parent, and so on until committing to the db.
// Commits the changes from [trieToCommit] to the db.
// Assumes that its parent view has already been committed to the db.
// Assumes [v.db.commitLock] is held.
func (v *view) commitToDB(ctx context.Context) error {
v.commitLock.Lock()
Expand Down

0 comments on commit 8172d8b

Please sign in to comment.