xunch 0.0.10 → 0.0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xunch/shard/redis.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4675154dcdab18efb9f40343df82ff35bd43e9f
|
4
|
+
data.tar.gz: 47eba457b210aecbf72268eda35557b8f785bf57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e029ca1ed83d478e0231305779ae280f332098fb0cdf3d721cc0c9ffea5b211f5ce839f85d3328230d47f6dfcf3c31accd31193a8754f42d94b39991b962a4d
|
7
|
+
data.tar.gz: c424b62fef9d63c041332f59b3cb01bc47fa6ecf8f4f344649711ef6a4c4b9b6979bd4bf099f01a5f6e02dd365775186a02cdb5111b63c14557bbac69f72fd52
|
data/lib/xunch/shard/redis.rb
CHANGED
@@ -22,8 +22,8 @@ module Xunch
|
|
22
22
|
options[:pool_timeout] = 1073741823
|
23
23
|
end
|
24
24
|
# p options[:driver]
|
25
|
-
last_driver = Redis::Connection.drivers.last
|
26
|
-
options[:driver] ||= last_driver[last_driver.rindex('
|
25
|
+
last_driver = Redis::Connection.drivers.last.name
|
26
|
+
options[:driver] ||= last_driver[last_driver.rindex(':') + 1, last_driver.length].to_sym
|
27
27
|
if options[:driver] == :synchrony
|
28
28
|
require "xunch/connection/fiber_redis_pool"
|
29
29
|
# puts "fiber pool"
|
@@ -257,7 +257,7 @@ module Xunch
|
|
257
257
|
end
|
258
258
|
end
|
259
259
|
|
260
|
-
private
|
260
|
+
private
|
261
261
|
def with(&block)
|
262
262
|
@pool.with(&block)
|
263
263
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xunch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.10
|
4
|
+
version: 0.0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ted Wang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|