We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a93c2 commit b9ec6a1Copy full SHA for b9ec6a1
1 file changed
src/placeos-driver/subscriptions.cr
@@ -156,11 +156,6 @@ class PlaceOS::Driver
156
while details = subscription_channel.receive?
157
sub, chan = details
158
159
- if chan == "ping"
160
- redis.ping
161
- next
162
- end
163
-
164
begin
165
SimpleRetry.try_to(
166
max_attempts: 4,
@@ -188,11 +183,10 @@ class PlaceOS::Driver
188
183
spawn(same_thread: true) do
189
184
instance = monitor_count
190
185
wait.close
191
- sleep 10.seconds
192
186
loop do
193
187
sleep 1.second
194
break if instance != monitor_count
195
- subscription_channel.send({true, "ping"}) rescue nil
+ subscription_channel.send({true, SYSTEM_ORDER_UPDATE}) rescue nil
196
end
197
198
0 commit comments