Skip to content

Commit

Permalink
Register on_forward callback to send buffered packets
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 6, 2015
1 parent 3cd36b6 commit fb7c02b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/droonga/engine_node.rb
Expand Up @@ -31,6 +31,9 @@ def initialize(name, state, loop, params)
@sender_node_metadata = params[:metadata]

@buffer = ForwardBuffer.new(name)
@buffer.on_forward = lambda do |message, destination|
output(message, destination)
end

parsed_name = parse_node_name(@name)
@sender = FluentMessageSender.new(loop,
Expand Down

0 comments on commit fb7c02b

Please sign in to comment.