Skip to content

Commit 315d561

Browse files
committed
Fix respond_to? check for 'declare_workers_not_supported!'
1 parent 63e9ae1 commit 315d561

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/logstash/outputs/tcp.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base
2222
# When mode is `server`, the port to listen on.
2323
# When mode is `client`, the port to connect to.
2424
config :port, :validate => :number, :required => true
25-
25+
2626
# When connect failed,retry interval in sec.
2727
config :reconnect_interval, :validate => :number, :default => 10
2828

@@ -39,7 +39,7 @@ class LogStash::Outputs::Tcp < LogStash::Outputs::Base
3939
config :message_format, :validate => :string, :deprecated => true
4040

4141
# respond_to? check needed for backwards compatibility with < 2.2 Logstashes
42-
declare_workers_not_supported! if self.respond_to?(:workers_not_supported!)
42+
declare_workers_not_supported! if self.respond_to?(:declare_workers_not_supported!)
4343

4444
class Client
4545
public
@@ -136,14 +136,14 @@ def server?
136136

137137
public
138138
def receive(event)
139-
139+
140140

141141
#if @message_format
142142
#output = event.sprintf(@message_format) + "\n"
143143
#else
144144
#output = event.to_hash.to_json + "\n"
145145
#end
146-
146+
147147
@codec.encode(event)
148148
end # def receive
149149
end # class LogStash::Outputs::Tcp

0 commit comments

Comments
 (0)