Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions espresso/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ func (s *EspressoStreamer[B]) processRemainingBatches(ctx context.Context) {
s.Log.Info("Remaining list", "Recovered batch, inserting batch", batch)

case BatchFuture:
s.Log.Info("Remaining list", "Inserting batch for future processing", batch)
// The function CheckBatch is not expected to return BatchFuture so if we enter this case there is a problem.
s.Log.Error("Remaining list", "BatchFuture validity not expected for batch", batch)
}

s.Log.Trace("Remaining list", "Inserting batch into buffer", "batch", batch)
Expand Down Expand Up @@ -386,7 +387,8 @@ func (s *EspressoStreamer[B]) processEspressoTransactions(ctx context.Context, i
s.Log.Info("Inserting accepted batch")

case BatchFuture:
s.Log.Info("Inserting batch for future processing")
// The function CheckBatch is not expected to return BatchFuture so if we enter this case there is a problem.
s.Log.Error("Remaining list", "BatchFuture validity not expected for batch", batch)
}

s.Log.Trace("Inserting batch into buffer", "batch", batch)
Expand Down