Skip to content

Commit

Permalink
Fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Feb 1, 2024
1 parent 66de505 commit 828d22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/sinker.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (s *Sinker) HandleBlockUndoSignal(ctx context.Context, undoSignal *pbsubstr
if err != nil {
if s.db.tx != nil {
e := s.db.RollbackTransaction()
err = fmt.Errorf("Undo block: %d rollback transaction: %w: while handling err %w", blockId, e, err)
err = fmt.Errorf("undo block: %s rollback transaction: %w: while handling err %w", blockId, e, err)
}

return
Expand All @@ -174,7 +174,7 @@ func (s *Sinker) HandleBlockUndoSignal(ctx context.Context, undoSignal *pbsubstr

err = s.db.HandleBlockUndo(blockId)
if err != nil {
return fmt.Errorf("handle block %d undo: %w", blockId, err)
return fmt.Errorf("handle block %s undo: %w", blockId, err)
}

err = s.db.StoreCursor(cursor)
Expand Down

0 comments on commit 828d22b

Please sign in to comment.