mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Fix declare_workers_not_supported docs to do correct respond_to? check
Fixes #4448
This commit is contained in:
parent
9e57d05de1
commit
00f876f323
1 changed files with 1 additions and 1 deletions
2
docs/static/include/pluginbody.asciidoc
vendored
2
docs/static/include/pluginbody.asciidoc
vendored
|
@ -281,7 +281,7 @@ class LogStash::{pluginclass}::{pluginnamecap} < LogStash::{pluginclass}::Base
|
|||
# File would only cause problems.
|
||||
#
|
||||
# respond_to? check needed for backwards compatibility with < 2.2 Logstashes
|
||||
declare_workers_not_supported! if self.respond_to?(:workers_not_supported!)
|
||||
declare_workers_not_supported! if self.respond_to?(:declare_workers_not_supported!)
|
||||
|
||||
# If declared threadsafe logstash will only ever create one
|
||||
# instance of this plugin per pipeline.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue