Skip to content

Commit

Permalink
Update README.md to follow previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
okkez committed Sep 27, 2018
1 parent 4f98038 commit a8144e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@ class BufferOverflowHandler
def flush(messages)
@buffer ||= []
MessagePack::Unpacker.new.feed_each(messages) do |msg|
@buffer << msg
messages.each do |tag, message|
unpacker = MessagePack::Unpacker.new(StringIO.new(message))
unpacker.each do |time, record|
@buffer << [tag, time, record]
end
end
end
end
Expand Down

0 comments on commit a8144e7

Please sign in to comment.