Fix Style/OptionalBooleanParameter
cop (#34968)
This commit is contained in:
parent
a2a6117143
commit
dc2cfd50a0
14 changed files with 17 additions and 29 deletions
|
@ -20,7 +20,7 @@ class PerOperationWithDeadline < HTTP::Timeout::PerOperation
|
|||
@read_deadline = options.fetch(:read_deadline, READ_DEADLINE)
|
||||
end
|
||||
|
||||
def connect(socket_class, host, port, nodelay = false)
|
||||
def connect(socket_class, host, port, nodelay = false) # rubocop:disable Style/OptionalBooleanParameter
|
||||
@socket = socket_class.open(host, port)
|
||||
@socket.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1) if nodelay
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue