File tree 1 file changed +0
-3
lines changed
Sources/RediStack/ChannelHandlers
1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ extension RedisCommandHandler: ChannelInboundHandler {
76
76
public func errorCaught( context: ChannelHandlerContext , error: Error ) {
77
77
let queue = self . commandResponseQueue
78
78
79
- assert ( queue. count > 0 , " Received unexpected error while idle: \( error. localizedDescription) " )
80
-
81
79
self . commandResponseQueue. removeAll ( )
82
80
queue. forEach { $0. fail ( error) }
83
81
@@ -95,7 +93,6 @@ extension RedisCommandHandler: ChannelInboundHandler {
95
93
let value = self . unwrapInboundIn ( data)
96
94
97
95
guard let leadPromise = self . commandResponseQueue. popFirst ( ) else {
98
- assertionFailure ( " Read triggered with an empty promise queue! Ignoring: \( value) " )
99
96
self . logger. critical ( " Read triggered with no promise waiting in the queue! " )
100
97
return
101
98
}
You can’t perform that action at this time.
0 commit comments