Skip to content

Commit

Permalink
fix: temp print
Browse files Browse the repository at this point in the history
  • Loading branch information
alok committed Jul 30, 2023
1 parent 6b7acfb commit c141c15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/storage/leveldbstore/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (s *TxStore) Recover() error {
Factory: func() storage.Item { return new(pendingTx) },
ItemProperty: storage.QueryItem,
}, func(r storage.Result) (bool, error) {
fmt.Println("levelDB recovery txn", r.ID)

Check failure on line 44 in pkg/storage/leveldbstore/recovery.go

View workflow job for this annotation

GitHub Actions / Lint

use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
if err := r.Entry.(*pendingTx).val.Replay(batch); err != nil {
return true, fmt.Errorf("unable to replay batch for %s: %w", r.ID, err)
}
Expand All @@ -50,6 +51,7 @@ func (s *TxStore) Recover() error {
if err != nil {
return fmt.Errorf("leveldbstore: recovery: iteration failed: %w", err)
}
fmt.Println("levelDB recovery batch", batch.Len())

Check failure on line 54 in pkg/storage/leveldbstore/recovery.go

View workflow job for this annotation

GitHub Actions / Lint

use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)

if err := s.BatchedStore.(*Store).db.Write(batch, &opt.WriteOptions{Sync: true}); err != nil {
return fmt.Errorf("leveldbstore: recovery: unable to write batch: %w", err)
Expand Down

0 comments on commit c141c15

Please sign in to comment.