Skip to content

Commit 098d9fb

Browse files
committed
Test enabled Scala 3 syntax
1 parent b6545cc commit 098d9fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/src/main/scala/com/avsystem/commons/redis/commands/ReplyDecoders.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ object ReplyDecoders {
243243
}
244244

245245
val multiBulkAsSlowlogEntry: ReplyDecoder[SlowlogEntry] = {
246-
case msg@ArrayMsg(IndexedSeq(IntegerMsg(id), IntegerMsg(timestamp), IntegerMsg(duration), ArrayMsg(rawCommand), rest@_*)) =>
246+
case msg@ArrayMsg(IndexedSeq(IntegerMsg(id), IntegerMsg(timestamp), IntegerMsg(duration), ArrayMsg(rawCommand), rest*)) =>
247247
val commandArgs = rawCommand.map {
248248
case BulkStringMsg(arg) => arg
249249
case el => throw new UnexpectedReplyException(s"Unexpected message for SLOWLOG command argument: $el")
@@ -263,7 +263,7 @@ object ReplyDecoders {
263263
}
264264

265265
val multiBulkAsSlotRangeMapping: ReplyDecoder[SlotRangeMapping] = {
266-
case ArrayMsg(IndexedSeq(IntegerMsg(from), IntegerMsg(to), master, slaves@_*)) =>
266+
case ArrayMsg(IndexedSeq(IntegerMsg(from), IntegerMsg(to), master, slaves*)) =>
267267
val range = SlotRange(from.toInt, to.toInt)
268268
def parseNode(rr: RedisMsg) = rr match {
269269
case ArrayMsg(IndexedSeq(BulkStringMsg(ip), IntegerMsg(port), BulkStringMsg(nodeId), _*)) =>

0 commit comments

Comments
 (0)