Skip to content

Commit 32711a2

Browse files
authored
Skip BatchFuture (#217)
1 parent 6a6275f commit 32711a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

espresso/streamer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ func (s *EspressoStreamer[B]) processRemainingBatches(ctx context.Context) {
348348
case BatchFuture:
349349
// The function CheckBatch is not expected to return BatchFuture so if we enter this case there is a problem.
350350
s.Log.Error("Remaining list", "BatchFuture validity not expected for batch", batch)
351+
continue
351352
}
352353

353354
s.Log.Trace("Remaining list", "Inserting batch into buffer", "batch", batch)
@@ -397,6 +398,7 @@ func (s *EspressoStreamer[B]) processEspressoTransactions(ctx context.Context, i
397398
case BatchFuture:
398399
// The function CheckBatch is not expected to return BatchFuture so if we enter this case there is a problem.
399400
s.Log.Error("Remaining list", "BatchFuture validity not expected for batch", batch)
401+
continue
400402
}
401403

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

0 commit comments

Comments
 (0)