istox 0.1.152.debug.5 → 0.1.152
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/istox-gem.iml +2 -1748
- data/Gemfile.lock +5 -5
- data/lib/istox.rb +1 -0
- data/lib/istox/helpers/bunny_boot.rb +0 -1
- data/lib/istox/helpers/dlm.rb +0 -4
- data/lib/istox/helpers/publisher.rb +3 -6
- data/lib/istox/helpers/subscriber.rb +1 -1
- data/lib/istox/version.rb +1 -1
- metadata +5 -5
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
istox (0.1.
|
4
|
+
istox (0.1.150.1)
|
5
5
|
awesome_print
|
6
6
|
binding_of_caller
|
7
7
|
bunny (>= 2.12.0)
|
8
8
|
graphlient
|
9
9
|
gruf
|
10
10
|
hashie (~> 3.5.7)
|
11
|
-
istox_gruf
|
11
|
+
istox_gruf (~> 2.7.3)
|
12
12
|
listen (~> 3.0.5)
|
13
13
|
ougai
|
14
14
|
paranoia (~> 2.2)
|
@@ -98,7 +98,7 @@ GEM
|
|
98
98
|
ffi (1.12.2)
|
99
99
|
globalid (0.4.2)
|
100
100
|
activesupport (>= 4.2.0)
|
101
|
-
google-protobuf (3.11.4
|
101
|
+
google-protobuf (3.11.4)
|
102
102
|
googleapis-common-protos-types (1.0.5)
|
103
103
|
google-protobuf (~> 3.11)
|
104
104
|
graphlient (0.3.7)
|
@@ -109,7 +109,7 @@ GEM
|
|
109
109
|
graphql-client (0.16.0)
|
110
110
|
activesupport (>= 3.0)
|
111
111
|
graphql (~> 1.8)
|
112
|
-
grpc (1.28.0
|
112
|
+
grpc (1.28.0)
|
113
113
|
google-protobuf (~> 3.11)
|
114
114
|
googleapis-common-protos-types (~> 1.0)
|
115
115
|
grpc-tools (1.28.0)
|
@@ -148,7 +148,7 @@ GEM
|
|
148
148
|
nokogiri (1.10.9)
|
149
149
|
mini_portile2 (~> 2.4.0)
|
150
150
|
oj (3.10.6)
|
151
|
-
ougai (1.8.
|
151
|
+
ougai (1.8.3)
|
152
152
|
oj (~> 3.10)
|
153
153
|
paranoia (2.4.2)
|
154
154
|
activerecord (>= 4.0, < 6.1)
|
data/lib/istox.rb
CHANGED
@@ -33,6 +33,7 @@ module Istox
|
|
33
33
|
require 'istox/helpers/regex_helper'
|
34
34
|
require 'istox/helpers/result_handler'
|
35
35
|
require 'istox/helpers/redis'
|
36
|
+
require 'istox/helpers/dlm'
|
36
37
|
require 'istox/helpers/remote_model_cache'
|
37
38
|
require 'istox/models/blockchain_receipt'
|
38
39
|
require 'istox/models/concerns/blockchain_receipt_query'
|
data/lib/istox/helpers/dlm.rb
CHANGED
@@ -65,16 +65,15 @@ module Istox
|
|
65
65
|
Thread.list.each do |t|
|
66
66
|
tid << t.object_id
|
67
67
|
end
|
68
|
-
|
69
|
-
log.info("Current tid is #{tid}")
|
68
|
+
# log.info("Current tid is #{tid}")
|
70
69
|
|
71
70
|
tid_c = @channel.keys
|
72
|
-
log.info("@channel tid is #{tid_c}")
|
71
|
+
# log.info("@channel tid is #{tid_c}")
|
73
72
|
|
74
73
|
tid_c.each do |t|
|
75
74
|
unless tid.include? t
|
76
75
|
# Close channel and remove it from @channel
|
77
|
-
log.
|
76
|
+
log.debug("Thread #{t} doesn't exist any more, close channel for it and remove it from @channel")
|
78
77
|
@channel[t]['confirm-0'].close
|
79
78
|
@channel[t]['confirm-1'].close
|
80
79
|
@channel[t]['noconfirm'].close
|
@@ -109,8 +108,6 @@ module Istox
|
|
109
108
|
@channel[Thread.current.object_id]['confirm-1'] = ::Istox::BunnyBoot.channel(connection, confirm: true)
|
110
109
|
@channel[Thread.current.object_id]['noconfirm'] = ::Istox::BunnyBoot.channel(connection, confirm: false)
|
111
110
|
|
112
|
-
log.info "Current @channel object is: #{@channel}"
|
113
|
-
|
114
111
|
@channel[Thread.current.object_id]
|
115
112
|
end
|
116
113
|
|
@@ -104,7 +104,7 @@ module Istox
|
|
104
104
|
break unless ::Istox::BunnyBoot.queue_single_consumer? consumer_key
|
105
105
|
|
106
106
|
flag = false
|
107
|
-
::Istox::DLMBoot.lock("peatio:#{consumer_key}:locking",
|
107
|
+
::Istox::DLMBoot.lock("peatio:#{consumer_key}:locking", 10) do
|
108
108
|
flag = ::Istox::BunnyBoot.queue_ok? @conn, queue.name
|
109
109
|
end
|
110
110
|
break if flag
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: istox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.152
|
4
|
+
version: 0.1.152
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -471,11 +471,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
471
471
|
version: '0'
|
472
472
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
473
473
|
requirements:
|
474
|
-
- - "
|
474
|
+
- - ">="
|
475
475
|
- !ruby/object:Gem::Version
|
476
|
-
version:
|
476
|
+
version: '0'
|
477
477
|
requirements: []
|
478
|
-
rubygems_version: 3.0.
|
478
|
+
rubygems_version: 3.0.6
|
479
479
|
signing_key:
|
480
480
|
specification_version: 4
|
481
481
|
summary: istox backend shared gem
|