Skip to content

Commit bdfd0e9

Browse files
ndyakovCopilot
andauthored
Update internal/proto/redis_errors.go
Co-authored-by: Copilot <[email protected]>
1 parent 6310732 commit bdfd0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/proto/redis_errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func IsMovedError(err error) (*MovedError, bool) {
231231
// Parse: MOVED 3999 127.0.0.1:6381
232232
parts := strings.Split(s, " ")
233233
if len(parts) == 3 {
234-
return &MovedError{msg: s}, true
234+
return &MovedError{msg: s, addr: parts[2]}, true
235235
}
236236
}
237237
return nil, false

0 commit comments

Comments
 (0)