|
|
@ -47,6 +47,7 @@ def refresh_feeds(db, logger, max_threads = 1, use_feed_events = false)
|
|
|
|
|
|
|
|
|
|
|
|
# Spawn thread to handle feed events
|
|
|
|
# Spawn thread to handle feed events
|
|
|
|
if use_feed_events
|
|
|
|
if use_feed_events
|
|
|
|
|
|
|
|
spawn do
|
|
|
|
queue = Deque(String).new(30)
|
|
|
|
queue = Deque(String).new(30)
|
|
|
|
|
|
|
|
|
|
|
|
spawn do
|
|
|
|
spawn do
|
|
|
@ -77,6 +78,7 @@ def refresh_feeds(db, logger, max_threads = 1, use_feed_events = false)
|
|
|
|
queue << event.payload
|
|
|
|
queue << event.payload
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
spawn do
|
|
|
|
spawn do
|
|
|
|
max_threads = max_channel.receive
|
|
|
|
max_threads = max_channel.receive
|
|
|
|