Skip to content

Commit

Permalink
add kwarg (to be ignored) to have same arguments between #to_msgpack_…
Browse files Browse the repository at this point in the history
…stream
  • Loading branch information
tagomoris committed May 17, 2016
1 parent 690f904 commit 1a43a1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/fluent/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def each(&block)
nil
end

def to_msgpack_stream
def to_msgpack_stream(time_int: false)
# time_int is always ignored because @data is always packed binary in this class
@data
end
end
Expand All @@ -196,7 +197,8 @@ def each(&block)
end
alias :msgpack_each :each

def to_msgpack_stream
def to_msgpack_stream(time_int: false)
# time_int is always ignored because data is already packed and written in chunk
read
end
end
Expand Down

0 comments on commit 1a43a1a

Please sign in to comment.