istox 0.1.104 → 0.1.105
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/istox/consumers/blockchain_status_handler.rb +1 -1
- data/lib/istox/helpers/bunny_boot.rb +4 -2
- data/lib/istox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cda3b4cd33b17f5927f1d29a4fde2324ee221683e344bd53052c6f62039d38b
|
4
|
+
data.tar.gz: ffaabc3866f8936bdca161e0e83e637cee393070f4026b5a864c464b8d3d7fb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c38ab31c013e41825205258988b635cb94f09ba3f02ab44a895da6ee5c494901f56d1a5b169dc0b2d53ade609dd22922d03fc4a90addc5f80276cc1b7ff6ad0e
|
7
|
+
data.tar.gz: ad2d04b7e4638e96ef4517651ecc2721ae0a889fe37feeccf53ba6884da4158e39a556f54c3a2b3a487c95ea329f564803c377ad07387169139e1ed334499a61
|
@@ -23,7 +23,7 @@ module Istox
|
|
23
23
|
status = transaction.success ? 'confirmed' : 'failed'
|
24
24
|
|
25
25
|
receipt.update!(status: status, message: transaction.message,
|
26
|
-
txhash: transaction.
|
26
|
+
txhash: transaction.txn_hashes.present? ? transaction.txn_hashes.join(',') : nil)
|
27
27
|
|
28
28
|
resource = begin
|
29
29
|
class_eval("::#{receipt.resource_name}", __FILE__, __LINE__).find(receipt.resource_id)
|
@@ -84,9 +84,11 @@ module Istox
|
|
84
84
|
|
85
85
|
queue.subscribe manual_ack: manual_ack do |delivery_info, metadata, payload|
|
86
86
|
processing_paylod = JSON.parse(payload)
|
87
|
-
|
87
|
+
payload_object = ::Istox::CommonHelper.to_open_struct(processing_paylod)
|
88
88
|
|
89
|
-
|
89
|
+
log.info "Processing in consumer: #{klass}, paylod: #{payload_object.to_h.inspect}"
|
90
|
+
|
91
|
+
klass.new.process(payload_object, metadata, delivery_info)
|
90
92
|
active_channel.ack(delivery_info.delivery_tag) if manual_ack
|
91
93
|
rescue StandardError => e
|
92
94
|
log.error(e)
|
data/lib/istox/version.rb
CHANGED