Skip to content

Commit eedf158

Browse files
committed
Replace remaining usage of pipeline.removeHandler(_:)
1 parent cfb99ba commit eedf158

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/RediStack/RedisConnection.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ extension RedisConnection {
526526
}
527527
logger.debug("subscription removed, with no current active subscriptions. leaving pubsub mode")
528528
// otherwise, remove the handler and update our state
529-
return self.channel.pipeline.removeHandler(handler)
529+
return self.channel.pipeline
530+
.removeRedisPubSubHandler(handler)
530531
.map {
531532
self.state = .open
532533
logger.debug("connection is now open to all commands")

0 commit comments

Comments
 (0)