Skip to content

Commit

Permalink
add log on undo
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Feb 19, 2024
1 parent 88cc3d5 commit b38cd28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sinker/sinker.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func (s *KVSinker) handleBlockScopedData(ctx context.Context, data *pbsubstreams

func (s *KVSinker) handleBlockUndoSignal(ctx context.Context, data *pbsubstreamsrpc.BlockUndoSignal, cursor *sink.Cursor) error {

s.logger.Info("handling undo signal", zap.Uint64("block_num", data.LastValidBlock.GetNumber()))

err := s.operationDB.HandleBlockUndo(ctx, data.LastValidBlock.GetNumber())
if err != nil {
return fmt.Errorf("handling undo signal: %w", err)
Expand Down

0 comments on commit b38cd28

Please sign in to comment.