diff --git a/lib/sphinx/integration/extensions/riddle/client.rb b/lib/sphinx/integration/extensions/riddle/client.rb index 4afcf3a..6581ce8 100644 --- a/lib/sphinx/integration/extensions/riddle/client.rb +++ b/lib/sphinx/integration/extensions/riddle/client.rb @@ -109,7 +109,7 @@ def read_with_timeout!(sock, maxlength, outbuf, timeout) sock_ready = IO.select(_read_fds = [sock], _write_fds = [], _exception_fds = [], 1) # Timeout - return read_with_timeout!(sock, maxlength, outbuf, timeout: timeout-1) if sock_ready.nil? + return read_with_timeout!(sock, maxlength, outbuf, timeout-1) if sock_ready.nil? begin outbuf << sock.read_nonblock(maxlength) @@ -119,7 +119,7 @@ def read_with_timeout!(sock, maxlength, outbuf, timeout) # Read it all? return outbuf if maxlength == outbuf.bytesize - read_with_timeout!(sock, maxlength, outbuf, timeout: timeout-1) + read_with_timeout!(sock, maxlength, outbuf, timeout-1) end end end