Skip to content

Commit

Permalink
Default the last_id to 0.
Browse files Browse the repository at this point in the history
Set `last_id` to 0 which reads from all transactions, instead of -1
which reads only the new transactions from the time of
subscription.
  • Loading branch information
AJ Villalobos and Mark Chavez authored and iamajvillalobos committed Apr 19, 2018
1 parent 1fd466d commit 97a7f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/message_bus/client/message_handler.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module MessageBus::Client::MessageHandler
SubscribedChannel = Struct.new(:callbacks, :last_id) do
def initialize(last_id = -1)
def initialize(last_id = 0)
self.callbacks = []
self.last_id = last_id
end
Expand Down

0 comments on commit 97a7f3b

Please sign in to comment.