YUKI Hiroshi
null+****@clear*****
Fri Nov 21 15:30:38 JST 2014
YUKI Hiroshi 2014-11-21 15:30:38 +0900 (Fri, 21 Nov 2014) New Revision: 0344dde775974f21ac00d907ae5efa5e0b08f203 https://github.com/droonga/droonga-client-ruby/commit/0344dde775974f21ac00d907ae5efa5e0b08f203 Message: Restrict sending messages per second to 100 by default. Too many inpouring messages will make the cluster overflowed... Modified files: bin/droonga-send lib/droonga/client/rate-limiter.rb Modified: bin/droonga-send (+1 -1) =================================================================== --- bin/droonga-send 2014-08-23 15:48:22 +0900 (6db9115) +++ bin/droonga-send 2014-11-21 15:30:38 +0900 (49a8bfd) @@ -31,7 +31,7 @@ options.default_tag = "droonga" servers = [] default_server = "droonga:localhost:10031/droonga" -messages_per_second = Droonga::Client::RateLimiter::NO_LIMIT +messages_per_second = Droonga::Client::RateLimiter::DEFAULT_LIMIT def parse_server(server, options) server_matcher = /\A(?:(droonga|http):)?([^:]+)(?::([0-9]+))?(?:\/(.+))?\z/ Modified: lib/droonga/client/rate-limiter.rb (+1 -0) =================================================================== --- lib/droonga/client/rate-limiter.rb 2014-08-23 15:48:22 +0900 (943d574) +++ lib/droonga/client/rate-limiter.rb 2014-11-21 15:30:38 +0900 (761e795) @@ -16,6 +16,7 @@ module Droonga class Client class RateLimiter + DEFAULT_LIMIT = 100 NO_LIMIT = -1 def initialize(client, messages_per_second) -------------- next part -------------- HTML����������������������������... 下載