Skip to content

Commit

Permalink
Add comment to clarify an intention
Browse files Browse the repository at this point in the history
Signed-off-by: Yuta Iwama <[email protected]>
  • Loading branch information
ganmacs committed Apr 23, 2019
1 parent c60c695 commit 8bffce6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fluent/plugin/out_forward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ def purge_obsolete_socks
end
end

# We expect that `yield` returns a unique object in this class
def fetch_or(key = Thread.current.object_id)
@mutex.synchronize do
unless @active_socks[key]
Expand Down

0 comments on commit 8bffce6

Please sign in to comment.