Skip to content

Commit

Permalink
Simple fix for knative-extensions#387: return a panic error
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeverdiere committed Oct 15, 2024
1 parent 4fd4e47 commit fe60ec9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/source/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ func (a *Adapter) processEntry(ctx context.Context, conn redis.Conn, streamName
if !isShuttingDown {
time.Sleep(1 * time.Second)
}
if strings.Contains(strings.ToLower(err.Error()), "use of closed network connection") {
panic(err)
}
return xreadID
}

Expand Down

0 comments on commit fe60ec9

Please sign in to comment.