Skip to content

Commit d536c28

Browse files
authored
Swap executor for reloader to fix dev server hanging on code changes (#51)
1 parent aa2d68b commit d536c28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/action_cable/subscription_adapter/solid_cable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def channels
9696
end
9797

9898
def broadcast_messages
99-
Rails.application.reloader.wrap do
99+
Rails.application.executor.wrap do
100100
::SolidCable::Message.broadcastable(channels, last_id).
101101
each do |message|
102102
broadcast(message.channel, message.payload)

test/config_stubs.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def config_for(_file)
1313
@config
1414
end
1515

16-
def reloader
17-
@reloader ||= ReloaderStub.new
16+
def executor
17+
@executor ||= ExectorStub.new
1818
end
1919

20-
class ReloaderStub
20+
class ExectorStub
2121
def wrap(&block)
2222
block.call
2323
end

0 commit comments

Comments
 (0)