Skip to content

Commit

Permalink
Struct-like protobuf classes eql? and hash on board
Browse files Browse the repository at this point in the history
  • Loading branch information
fidel committed Jun 8, 2020
1 parent 65dea8f commit 4b0dab4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ruby_event_store/lib/ruby_event_store/mappers/protobuf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ class Proto < RubyEventStore::Event
def event_type
data.class.descriptor.name
end

def ==(other_event)
other_event.instance_of?(self.class) &&
other_event.event_id.eql?(event_id) &&
other_event.data == data # https://github.com/google/protobuf/issues/4455
end
end

module Mappers
Expand Down

0 comments on commit 4b0dab4

Please sign in to comment.