Skip to content

Commit

Permalink
Update memiavl/db.go
Browse files Browse the repository at this point in the history
Signed-off-by: yihuang <huang@crypto.com>
  • Loading branch information
yihuang authored Jan 12, 2024
1 parent 8a41652 commit fe2dadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memiavl/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,8 @@ func (db *DB) UpdateCommitInfo() {
}

// WriteSnapshot wraps MultiTree.WriteSnapshot to add a lock.
func (db *DB) WriteSnapshot(ctx context.Context, dir string) error {
return db.WriteSnapshotWithContext(ctx, dir)
func (db *DB) WriteSnapshot(dir string) error {
return db.WriteSnapshotWithContext(context.Background(), dir)

Check warning on line 841 in memiavl/db.go

View check run for this annotation

Codecov / codecov/patch

memiavl/db.go#L841

Added line #L841 was not covered by tests
}

// WriteSnapshotWithContext wraps MultiTree.WriteSnapshotWithContext to add a lock.
Expand Down

0 comments on commit fe2dadf

Please sign in to comment.