Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Oct 10, 2023
1 parent 18e1d87 commit ba73621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 110 deletions.
4 changes: 3 additions & 1 deletion changeset/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ func openChangesetFile(fileName string) (Reader, error) {

func iterateChangeSet(reader Reader, fn func(version int64, changeset *iavl.ChangeSet) (bool, error)) (int64, error) {
var lastOffset int64
for true {
for {
offset, version, changeSet, err := readNextChangeset(reader)
if err != nil {
fmt.Printf("Error: %v\n", err)
return lastOffset, err
}

if offset == -1 || version == -1 {
// this means we are done
fmt.Printf("Done\n")
break
}
shouldStop, err := fn(version, changeSet)
Expand Down
109 changes: 0 additions & 109 deletions coverage.txt

This file was deleted.

0 comments on commit ba73621

Please sign in to comment.