forked from mirror/redis
Merge pull request #371 from go-redis/fix/try-go14-fix
Try to fix Go 1.4.
This commit is contained in:
commit
938235994e
|
@ -5,6 +5,7 @@ services:
|
||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
go:
|
go:
|
||||||
|
- 1.4
|
||||||
- 1.6
|
- 1.6
|
||||||
- 1.7
|
- 1.7
|
||||||
- tip
|
- tip
|
||||||
|
|
|
@ -58,7 +58,7 @@ func IsMoved(err error) (moved bool, ask bool, addr string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ind := strings.LastIndexByte(s, ' ')
|
ind := strings.LastIndex(s, " ")
|
||||||
if ind == -1 {
|
if ind == -1 {
|
||||||
return false, false, ""
|
return false, false, ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue