stop using named params in Partition#consumer

This commit is contained in:
Ben Osheroff 2015-06-13 14:12:57 -07:00
parent 0bc9e9d9ee
commit 3f0da9e0cd
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module Hermann
Topic = Struct.new(:name, :partitions)
Partition = Struct.new(:id, :leader, :replicas, :insync_replicas, :topic_name) do
def consumer(offset: :end)
def consumer(offset=:end)
Hermann::Consumer.new(topic_name, brokers: ([leader] + replicas).join(','), partition: id, offset: offset)
end
end