fixed comments for throttling
MODIFY
examples/throttling.rb
examples/throttling.rb
-# simple.rb
-# this example shows you a very basic message/handler setup
+# throttling.rb
+# this example shows you how throttling the publisher works
#
# ! check the examples/README.rdoc for information on starting your redis/rabbit !
#
-# start it with ruby simple.rb
+# start it with ruby throttling.rb
require "rubygems"
require File.expand_path("../lib/beetle", File.dirname(__FILE__))

MODIFY
lib/beetle/client.rb
lib/beetle/client.rb
@@ -267,7 +267,9 @@ module Beetle
# servers. Queue lenghts are periodically determined during publishing. You
# only want to use this feature if you plan to publish a huge amount of
# messages to slow consumers so as to not overload the broker or the redis
- # dedpuplication store.
+ # deduplication store. You'll want to use this feature when running background
+ # jobs that publish huge amounts of messages to avoid overloading brokers
+ # and the message deduplication store.
def throttle(throttling_options)
publisher.throttle(throttling_options.stringify_keys)
end

fixed comments for throttling