Skip to content

Commit

Permalink
Merge pull request #3406 from ashie/follow-up-#3405
Browse files Browse the repository at this point in the history
out_forward: Use method local unpacker
  • Loading branch information
ashie committed Jun 3, 2021
2 parents 86c6a5e + 4aead7d commit 8716489
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/fluent/plugin/out_forward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,7 @@ def establish_connection(sock, ri)
sleep @sender.read_interval
next
end
unpacker = Fluent::MessagePackFactory.thread_local_msgpack_unpacker
unpacker.feed_each(buf) do |data|
Fluent::MessagePackFactory.msgpack_unpacker.feed_each(buf) do |data|
if @handshake.invoke(sock, ri, data) == :established
@log.debug "connection established", host: @host, port: @port
end
Expand Down

0 comments on commit 8716489

Please sign in to comment.