Skip to content

Commit 2222714

Browse files
authored
chore: tweak redis subscription handling (#171)
tweak timings in subscriptions
1 parent 12ef4c4 commit 2222714

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: placeos-driver
2-
version: 7.17.5
2+
version: 7.17.6
33

44
dependencies:
55
action-controller:

src/placeos-driver/subscriptions.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class PlaceOS::Driver
180180
instance = monitor_count
181181
wait.close
182182
loop do
183-
sleep 1.second
183+
sleep 3.seconds
184184
break if instance != monitor_count
185185
subscription_channel.send({true, SYSTEM_ORDER_UPDATE})
186186
end
@@ -288,7 +288,7 @@ class PlaceOS::Driver
288288
@redis : Redis? = nil
289289

290290
protected def self.new_clustered_redis
291-
Redis::Client.boot(ENV["REDIS_URL"]? || "redis://localhost:6379", reconnect: false)
291+
Redis::Client.boot(ENV["REDIS_URL"]? || "redis://localhost:6379", reconnect: false, command_timeout: 10.seconds)
292292
end
293293

294294
private def redis_cluster

0 commit comments

Comments
 (0)