Remove duplicate method declaration

This commit is contained in:
Sarah Mei 2011-10-23 15:20:07 -07:00
parent 178b7af946
commit b78ed1b794

View file

@ -80,10 +80,14 @@ class Postzord::Dispatcher
end end
# Enqueues a job in Resque # Enqueues a job in Resque
# @abstract
# @param remote_people [Array<Person>] Recipients of the post on other pods # @param remote_people [Array<Person>] Recipients of the post on other pods
# @return [void]
def queue_remote_delivery_job(remote_people) def queue_remote_delivery_job(remote_people)
raise "You need to specify a remote delivery job" Resque.enqueue(Jobs::HttpMulti,
@sender.id,
Base64.encode64s(@object.to_diaspora_xml),
remote_people.map{|p| p.id},
self.class.to_s)
end end
# @param people [Array<Person>] Recipients of the post # @param people [Array<Person>] Recipients of the post
@ -145,12 +149,5 @@ class Postzord::Dispatcher
@object.socket_to_user(user) @object.socket_to_user(user)
end end
end end
# Enqueues a job in Resque
# @param remote_people [Array<Person>] Recipients of the post on other pods
# @return [void]
def queue_remote_delivery_job(remote_people)
Resque.enqueue(Jobs::HttpMulti, @sender.id, Base64.encode64s(@object.to_diaspora_xml), remote_people.map{|p| p.id}, self.class.to_s)
end
end end