libcouchbase 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libcouchbase/bucket.rb +2 -2
- data/lib/libcouchbase/callbacks.rb +1 -4
- data/lib/libcouchbase/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35fe6cdbdb5c9b531318676b7d84d6f82dfc7a5c
|
|
4
|
+
data.tar.gz: 4140f1a10bce79401304ed15794dbdabab7ae979
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0f1994bd9ee6195b33419c7bfce7b5e0c2a46b9c5aa3126ca7e1e7663fa14d2b0764037a7b51d02f5228f36cd1667671746d2cda58a7a9849e62da553d35fde
|
|
7
|
+
data.tar.gz: 1ae07ed59cfb4c90286e870b70b0d0c3cb18a7a74b41d98773646325fcfaf7727fb65cceb283ffada8a3959fa850f74c9f745b21c64d55fd42bf86bb64f27ecd
|
data/lib/libcouchbase/bucket.rb
CHANGED
|
@@ -800,7 +800,7 @@ module Libcouchbase
|
|
|
800
800
|
rescue Libcouchbase::Error::ConnectError => e
|
|
801
801
|
attempt += 1
|
|
802
802
|
if attempt < 3
|
|
803
|
-
reactor.sleep
|
|
803
|
+
reactor.sleep 200
|
|
804
804
|
# Requires a new connection object or the retry will always fail
|
|
805
805
|
@connection = Connection.new(**@connection_options)
|
|
806
806
|
retry
|
|
@@ -837,7 +837,7 @@ module Libcouchbase
|
|
|
837
837
|
rescue Libcouchbase::Error::ConnectError => e
|
|
838
838
|
attempt += 1
|
|
839
839
|
if attempt < 3
|
|
840
|
-
reactor.sleep
|
|
840
|
+
reactor.sleep 200
|
|
841
841
|
# Requires a new connection object or the retry will always fail
|
|
842
842
|
@connection = Connection.new(**@connection_options)
|
|
843
843
|
retry
|
|
@@ -14,10 +14,7 @@ module Libcouchbase
|
|
|
14
14
|
def dispatch_callback(func_name, lookup, args)
|
|
15
15
|
instance_id = __send__(lookup, *args)
|
|
16
16
|
inst = @callback_lookup[instance_id]
|
|
17
|
-
if inst.respond_to?
|
|
18
|
-
# Wrap all callbacks in a fiber
|
|
19
|
-
::Fiber.new { inst.__send__(func_name, *args) }.resume
|
|
20
|
-
end
|
|
17
|
+
inst.__send__(func_name, *args) if inst.respond_to?(func_name, true)
|
|
21
18
|
end
|
|
22
19
|
|
|
23
20
|
def define_callback(function:, params: [:pointer, :int, :pointer], ret_val: :void, lookup: :default_lookup)
|
data/lib/libcouchbase/version.rb
CHANGED