mixin_bot 1.2.0 → 1.2.1

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
  SHA256:
3
- metadata.gz: 2162191a7068afafb913aa9b898c7915c133b732c25b785c1ec8cbf672fd3edd
4
- data.tar.gz: 31303c5e3c9dfb3759c943c63d74a67f7efb7a9cbdfbee9a823ba6f7dc7c6ab2
3
+ metadata.gz: 34604a6a665ba47f14e69d97225780ca5b984df2344e5f32360f301eadab4616
4
+ data.tar.gz: 8d6fe1b40cada9bb7a693d91e77a924e055b36b31d808eecc61bee49c32af85f
5
5
  SHA512:
6
- metadata.gz: 9cef773f5bde48f7d1697b5be99251ec6b4d2dcd5dd15c1d9b7aa60d90089a3476f8b696b5f9e7c93acbbf464d35583519b51d7fdff70cd842c9a97d7a4b2100
7
- data.tar.gz: 2a16d609f841f1f2c0b85b217254e5368e042e0e2dc78817f7bee89774e90b12f674c8b3c67c4c73644ef02ff8f2a616109cd0659f63e8bed128cae50431152d
6
+ metadata.gz: 171af7dcf939b1c60b3cd24fc931c46507c22b09d417ba349005e6a4da02004319dd8665e4bcf6f655057a4569d1def480174e10fc1932df605cf03bd336389c
7
+ data.tar.gz: 7a7ca4e4b325a5ece9b04d6d8ffa621d630412a5911432056f88106813778c4dfa0f76eec8e2eafc169d448793f34bac053bff8c215e9fad9844f87116fdc994
@@ -103,7 +103,16 @@ module MixinBot
103
103
  # wait for tip pin update in server
104
104
  sleep 1
105
105
 
106
- safe_register pin, spend_key
106
+ @__retry__ = 0
107
+ begin
108
+ safe_register pin, spend_key
109
+ rescue MixinBot::Error => e
110
+ @__retry__ += 1
111
+ raise e if @__retry__ > 3
112
+
113
+ sleep 1 + @__retry__
114
+ retry
115
+ end
107
116
 
108
117
  {
109
118
  spend_key:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MixinBot
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixin_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - an-lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-18 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport