mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
Scan: swap return values and change cursor type.
This commit is contained in:
@ -399,7 +399,7 @@ func readReply(cn *pool.Conn, p multiBulkParser) (interface{}, error) {
|
||||
return nil, fmt.Errorf("redis: can't parse %.100q", line)
|
||||
}
|
||||
|
||||
func readScanReply(cn *pool.Conn) ([]string, int64, error) {
|
||||
func readScanReply(cn *pool.Conn) ([]string, uint64, error) {
|
||||
n, err := readArrayHeader(cn)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
@ -413,7 +413,7 @@ func readScanReply(cn *pool.Conn) ([]string, int64, error) {
|
||||
return nil, 0, err
|
||||
}
|
||||
|
||||
cursor, err := strconv.ParseInt(bytesToString(b), 10, 64)
|
||||
cursor, err := strconv.ParseUint(bytesToString(b), 10, 64)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user