Skip to content

Commit

Permalink
FIX: Use hostname and port passed to the proc. There are no instance …
Browse files Browse the repository at this point in the history
…variables (#45)
  • Loading branch information
romanrizzi committed Aug 22, 2023
1 parent de0f92c commit 35c306d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/discourse_antivirus/clamav_services_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def connection_factory
@factory ||=
Proc.new do |hostname, port|
begin
TCPSocket.new(@hostname, @port, connect_timeout: 3)
TCPSocket.new(hostname, port, connect_timeout: 3)
rescue StandardError
nil
end
Expand Down

0 comments on commit 35c306d

Please sign in to comment.