lib/zk/message_queue.rb in zk-1.9.0 vs lib/zk/message_queue.rb in zk-1.9.1
- old
+ new
@@ -45,10 +45,10 @@
mode = :persistent
else
message_title = "message"
end
@zk.create("#{full_queue_path}/#{message_title}", data, :mode => mode)
- rescue KeeperException::NodeExists
+ rescue ZK::Exceptions::NodeExists
return false
end
# you barely ever need to actually use this method but lets you remove a
# message from the queue by specifying its title