From 828d22bc7c30e8c7fdd29fc2e53cebb122abd675 Mon Sep 17 00:00:00 2001 From: arnaudberger Date: Thu, 1 Feb 2024 14:14:00 -0500 Subject: [PATCH] Fixing warnings --- data/sinker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/sinker.go b/data/sinker.go index b4d310f..fcff01d 100644 --- a/data/sinker.go +++ b/data/sinker.go @@ -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 @@ -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)