Merge pull request #242 from alexgridx/harlow-master

Harlow master
This commit is contained in:
Alex 2024-10-02 10:08:26 +02:00 committed by GitHub
commit 3cca2e079b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,6 @@ func (c *Consumer) Scan(ctx context.Context, fn ScanFunc) error {
if err != nil {
select {
case errC <- fmt.Errorf("shard %s error: %w", shardID, err):
// first error to occur
cancel()
default:
// error has already occurred