diff --git a/.travis.yml b/.travis.yml index 25bce05..1d042e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ services: - redis-server go: + - 1.4 - 1.6 - 1.7 - tip diff --git a/internal/errors/errors.go b/internal/errors/errors.go index 6d664dd..a17a3d3 100644 --- a/internal/errors/errors.go +++ b/internal/errors/errors.go @@ -58,7 +58,7 @@ func IsMoved(err error) (moved bool, ask bool, addr string) { return } - ind := strings.LastIndexByte(s, ' ') + ind := strings.LastIndex(s, " ") if ind == -1 { return false, false, "" }