Skip to content

Commit

Permalink
fix: wrong types of args
Browse files Browse the repository at this point in the history
  • Loading branch information
isqad committed Jun 22, 2021
1 parent 50c02ce commit 65f0f30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sphinx/integration/extensions/riddle/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 65f0f30

Please sign in to comment.