Skip to content

Commit fe60ec9

Browse files
committed
Simple fix for knative-extensions#387: return a panic error
1 parent 4fd4e47 commit fe60ec9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/source/adapter/adapter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ func (a *Adapter) processEntry(ctx context.Context, conn redis.Conn, streamName
186186
if !isShuttingDown {
187187
time.Sleep(1 * time.Second)
188188
}
189+
if strings.Contains(strings.ToLower(err.Error()), "use of closed network connection") {
190+
panic(err)
191+
}
189192
return xreadID
190193
}
191194

0 commit comments

Comments
 (0)