examples/server.rb in fluffle-0.6.3 vs examples/server.rb in fluffle-0.7.0
- old
+ new
@@ -1,10 +1,10 @@
lib = File.join File.dirname(__FILE__), '..', 'lib'
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'fluffle'
-server = Fluffle::Server.new url: 'amqp://localhost', concurrency: 5
+server = Fluffle::Server.new url: 'amqp://localhost', concurrency: 5, confirms: true
server.drain do |dispatcher|
dispatcher.handle('foo') { 'bar' }
end