Skip to content

Commit

Permalink
Apply feedback from ashie on GitHub#3808
Browse files Browse the repository at this point in the history
Signed-off-by: Fujimoto Seiji <[email protected]>
  • Loading branch information
fujimotos committed Jul 1, 2022
1 parent 2ebce28 commit 0a7a590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fluent/plugin/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def initialize
@_state = State.new(false, false, false, false, false, false, false, false, false)
@_context_router = nil
@_fluentd_worker_id = nil
@_fluentd_lockdir = nil
@under_plugin_development = false
end

Expand Down Expand Up @@ -74,7 +75,7 @@ def multi_workers_ready?
true
end

def acquire_worker_lock(name, &block)
def acquire_worker_lock(name)
if fluentd_lockdir.nil?
raise InvalidLockDirectory, "can't acquire lock because FLUENTD_LOCKDIR isn't set"
end
Expand Down

0 comments on commit 0a7a590

Please sign in to comment.