File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ extension RedisDataDecoder {
52
52
switch token {
53
53
case . plus:
54
54
guard let string = try _parseSimpleString ( at: & position, from: & buffer) else { return . notYetParsed }
55
- return . parsed( . basicString ( string) )
55
+ return . parsed( . simpleString ( string) )
56
56
57
57
case . colon:
58
58
guard let number = try _parseInteger ( at: & position, from: & buffer) else { return . notYetParsed }
@@ -135,7 +135,7 @@ extension RedisDataDecoder {
135
135
// since size = 0, and we successfully parsed the size
136
136
// the beginning of the next message should be 2 further (the final \r\n - $0\r\n\r\n)
137
137
position += 2
138
- return . parsed( . bulkString( " " . convertedToData ( ) ) )
138
+ return . parsed( . bulkString( Data ( ) ) )
139
139
}
140
140
141
141
// verify that we have at least our expected bulk string message
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import Foundation
5
5
/// See: https://redis.io/topics/protocol
6
6
public enum RedisData {
7
7
case null
8
- case basicString ( String )
8
+ case simpleString ( String )
9
9
case bulkString( Data )
10
10
case error( RedisError )
11
11
case integer( Int )
@@ -46,7 +46,7 @@ extension RedisData {
46
46
/// Extracts the basic/bulk string as a `String`.
47
47
var string : String ? {
48
48
switch self {
49
- case . basicString ( let string) : return string
49
+ case . simpleString ( let string) : return string
50
50
case . bulkString( let data) : return String ( bytes: data, encoding: . utf8)
51
51
default : return nil
52
52
}
You can’t perform that action at this time.
0 commit comments