libcouchbase 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d5efbc894cf45f5bcc3a8797a281540754f5a9c
4
- data.tar.gz: 6115816ceba181c981ef90be098e2abbff04dacd
3
+ metadata.gz: 35fe6cdbdb5c9b531318676b7d84d6f82dfc7a5c
4
+ data.tar.gz: 4140f1a10bce79401304ed15794dbdabab7ae979
5
5
  SHA512:
6
- metadata.gz: 8c4861c668d7b8302e9f722f6eb018f3cc320845c83294fb9b8f75f91cb97294dbcdaac57d085a305f971752218a5f17c76397bd9ab6c81e9c40856ad16a53ee
7
- data.tar.gz: 8b3e8d0339cd6c54b4f194dc87e143faac68afd00f7b11217fccf303669fb38da25f497c6629c36a90a09c8987cce9df86d1c166077d3fd856b7cae24d238155
6
+ metadata.gz: b0f1994bd9ee6195b33419c7bfce7b5e0c2a46b9c5aa3126ca7e1e7663fa14d2b0764037a7b51d02f5228f36cd1667671746d2cda58a7a9849e62da553d35fde
7
+ data.tar.gz: 1ae07ed59cfb4c90286e870b70b0d0c3cb18a7a74b41d98773646325fcfaf7727fb65cceb283ffada8a3959fa850f74c9f745b21c64d55fd42bf86bb64f27ecd
@@ -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 100
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 100
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? func_name, true
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true, encoding: ASCII-8BIT
2
2
 
3
3
  module Libcouchbase
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libcouchbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach